Re: Recursive sections

From: Date: Thu, 28 Feb 2002 14:53:21 +0000
Subject: Re: Recursive sections
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2895@lists.php.net to get a copy of this message
http://marc.theaimsgroup.com/?l=smarty&m=101000205531181&w=2 http://marc.theaimsgroup.com/?l=smarty&m=101215435215665&w=2 Bertrand DUNOGIER wrote: > > Hi, > > i'm working on a template which displays a folder tree from a > multidimensionnal array. > > I use a template which looks like this: > > {section name=tree loop=$FOLDERS_TREE} > {$FOLDERS_TREE[tree].level|multiplify:"<img > src='/gfx/foldertree/vertical.gif'>"}<img > src='/gfx/foldertree/plus.gif'><a > href='{$FOLDERS_TREE[tree].link}'>{$FOLDERS_TREE[tree].label}</a><br> > {if $FOLDERS_TREE[tree].tree}{include file=images/folderstree.tpl > FOLDERS_TREE=$FOLDERS_TREE[tree].tree}{/if} > {/section} > > The problem is that it only displays one level... > > it is probably a variable scope issue but i don't have time to dive > into the code right now... > > any way i could fix this ? > > -- > Best regards, > Bertrand mailto:bdunogier@wanadoo.fr > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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