Re: nested template question

From: Date: Mon, 26 Mar 2001 14:16:41 +0000
Subject: Re: nested template question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-437@lists.php.net to get a copy of this message
On Mon, 26 Mar 2001, Ivo Jansch wrote: > And this template is nested in some index.tpl: > > <br>Your bookmarks: > {section name=outer loop=$yourbookmarks} > {include file="item.tpl"} > {/section} > <hr> > <br>My bookmarks: > {section name=outer loop=$mybookmarks} > {include file="item.tpl"} > {/section} > > The problem is: This doesn't work. For it to work, item.tpl should be: > > <br><a href="{$yourbookmarks/url}">{$yourbookmarks/name}</a> It seems that it should be {$outer/url} instead of {$yourbookmarks/url}. You index by the section name, not by other variables. -Andrei * I wish life had an UNDO function. *

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