Re: how?

David Terrell <[email protected]>
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
On Sun, Jul 01, 2007 at 08:11:51AM -0000, zeegco wrote:
> Hi,
> I have an hdf tree and I want to traverse it and only show every two 
> first childs of every node (and not more childs). how can I do this? 
> (in a template)
> 
> can we break a loop/each in our templates? if yes, how?

If the children are numbered, i.e.

menu.recentmsgs.0.subject = "What's up"
menu.recentmsgs.0.body = "Hey man, what's going on"
menu.recentmsgs.1.subject = "Status"
menu.recentmsgs.1.body = "System is operational"
menu.recentmsgs.2.....


then you could just unroll the loop and try to show .0 and .1

-- 
David Terrell
[email protected]
((meatspace)) http://meat.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.