On 24.03.2011 12:44, Christophe COEVOET wrote:
>> I acces to subpages with page.children.
>>
>> Do one of you have an idea on how to do it ?
>>
>> Thank you ;)
>>
> The best solution IMO is to use {% include %} to include a template
> responsible of rendering a <page> item with the good variables. You can
> do this recursively.

I believe you can also use macros [1] recursively by calling them with
_self.macroname() where macroname is the name of your macro. Depending
on what you do, this might be more performant than includes..

[1] http://www.twig-project.org/doc/templates.html#macros

Cheers

-- 
Jordi Boggiano
@seldaek :: http://seld.be/

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to