Categories > TinyButStrong general >

Dynamic Template Includes

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Will Robertson
Date: 2003-06-28
Time: 00:39

Dynamic Template Includes

I can specify in the template what includes what where... however, I'd like to include a differn't page depending on a global variable. How would I achive this?
By: Skrol29
Date: 2003-06-28
Time: 01:11

Re: Dynamic Template Includes

Hello Will,

You can specify wich file to include and when to performe the inclusion.

The 'file' parameter supports global variable in its value.
For example : file=$myvar

The inclusion can be performed automatically when the template is loaded, or when it is shown using the field name tbs_include.onload or tbs_include.onshow
You can also decide when to include the file during you programm using the MergeField() method.