Overlib

From: Date: Wed, 05 Jun 2002 07:40:53 +0000
Subject: Overlib
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4602@lists.php.net to get a copy of this message
Anybody knows how to concatenate variables and strings in the text or caption attribute of {popup}? I can only assign 1 variable or a (HTML-)string. As a solution I compose the concatenation in my php-file en pass it as 1 variable tot the template. But this is not good practise because i have to format the popup-text in my php-file. PHP-file: $popuptexts=array(); ... $popuptext=$user->instelling."<br>".$user->adres."<br>".$user->postnr." ".$user->woonplaats."<br>t. ".$user->tel."<br>f. ".$user->fax; array_push($popuptexts,$popuptext); ... $smarty->assign("popuptext",$popuptexts); TPL-file: {section name=leden loop=$leden} ... <a href="#" {popup trigger=onClick sticky=true caption=$popupcaption[leden] text=$popuptext[leden] capcolor="#000000" bgcolor="#d2c800" fgbackground="images/div_achtergrond.gif" closecolor="#000000" closetext="X" offsety=-2}> ... {/section} Thx

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