RE: [SMARTY] Popup text

From: Date: Wed, 21 Aug 2002 11:44:01 +0000
Subject: RE: [SMARTY] Popup text
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5782@lists.php.net to get a copy of this message
> What if you want html-tags mixed with template-variables in your popup? > > I managed it by constructing a variable in my php-file that is a > concatenation of variables and tags. > But then there is html in your php-file, which should be avoided. > It would be nice if you could > - have a seperate template for the popup layer, or > - have a way to concatenate html and variables in the text-attribute of > popup: > {popup > text="{$var1}<tag>{$var2}<tag>{$var3}<tag>{$var4}<tag>"} > > Any suggestions? Why not construct your necessary HTML within a {capture} block, and then reference it in the format {popup text=$smarty.capture.CAPTURE-NAME}? Scott

« previous php.smarty.general (#5782) next »