Categories > TinyButStrong general >

define var on an html page

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: austin
Date: 2005-02-17
Time: 06:20

define var on an html page

is there aay to define a var in an html page?
By: Skrol29
Date: 2005-02-17
Time: 09:46

Re: define var on an html page

Template vars can be defined.
[onload;tplvars;var1=hello]
At the Php side, this will create the item $TBS->TplVars['var1'] equal to 'hello'. And you can reuse it in the template with [var..tplvars.var1].
More details in the manual.