Re: printing tree structures with smarty

From: Date: Wed, 02 Jan 2002 19:00:08 +0000
Subject: Re: printing tree structures with smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2471@lists.php.net to get a copy of this message
That wouldn't be the function of the template engine would it? Loop through your values when you assign them, and also assign the info the template needs to display them like the current depth, etc. Manuel Holtgrewe wrote: > > Hi! > > Now how could I output tree structures with smarty. If I wanted to print > a newsgroup in a tree structure, for example - how could I do that? > I have a template named "mail.tpl": > > {section name=mail loop=$mails} > <li> > {$mails[mail]} > <ul> > {include file="mail.tpl" mails=$mails[mail]} > </ul> > </li> > {/section} > > But that does not work... How to do it? > -- > what privilege do we have under the sun, > that gives us the right to the throne ? > In Flames - "Coerced Coexistence" > > --- > 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> http://www.ispi.net/

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