Page 1 of 1

how to hide a template only if a variable is set to a value ?

Posted: Thu Dec 29, 2005 3:29 am
by wene
i would like to show a template only if a var is defined like

$tmpl->addVar ('mytmpl','myvar',1);





i do like this, but i don't think that its fine.
i dont want to use visibility attribute because the value is inside an array that is given with addRows.
(i used  addVar for the exemple because its simplier).
(i have made a toolbar, and i want the text to be displayed all the time , but only sometimes, i want to hide it)