Re: [SMARTY] Popup text

From: Date: Wed, 21 Aug 2002 13:32:40 +0000
Subject: Re: [SMARTY] Popup text
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5793@lists.php.net to get a copy of this message
----- Original Message ----- From: "Roman Neuhauser" <neuhauser@bellavista.cz> > > From: "Valerio Santinelli" <tanis@mediacom.it> > > > > Is it possible to include dynamic text in the popup function? > > > > Something along the line of > > > > {popup text="$doc.text"} > > {popup text="{$variable_containing_the_text}"} > It works, but only if you've got a single variable like you did. In the case that the popup is in a "section" it stops working. Doing something like: {section name=n loop=$docs} <a href="blabla.php" {popup text="$docs[n].description"}>Bla</a> {/section} Is not going to work. Ah! You should NOT include the "{" and "}" around the variable. What's funny is that if you do something like: {section name=n loop=$docs} <a href="blabla.php" {popup text="$dummy"}>Bla</a> {/section} It works (obviously you always see the content of $dummy which is the same all over the loop). -- Valerio Santinelli One Man Crew Gaming Community (http://www.onemancrew.org) My Lab (http://tanis.hateseed.com) HateSeed.com Founder (http://www.hateseed.com) In Flames Italia Webmaster (http://www.inflames.it)

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