Re: [SMARTY] template in a popup?
| From: | Rasmus Schultz | Date: | Thu, 09 Jan 2003 13:45:04 +0000 |
| Subject: | Re: [SMARTY] template in a popup? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7080@lists.php.net to get a copy of this message | ||
capture it first, like so:
{capture name=mypopup}
your html for your popup here.
{include file="myinclude.tpl"}
and your includes and so on.
{/capture}
then use the popup tag with the captured content:
<A HREF="http://my.site" {popup
text=$smarty.capture.mypopup}>Click Here</A>
that should do the trick? :)
--- At 2003-01-09, 11:28:00, philippe.morange <philippe.morange@ca-indosuez.com> wrote:
>Hi,
>I'd like to know if it's possible to use a template as a popup created with overlib?
>
>Something like: {popup loadfile=template.tpl}
>
>It would be a lot cleaner than putting the html in the text="..." I think.
>
>
>
>--
>Smarty General Mailing List (http://smarty.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php