[TYPO3-mvc] Get childs

Dennis Ahrens dennis.ahrens at googlemail.com
Fri Oct 22 09:17:06 CEST 2010


Hi Dawid,

Dawid Pacholczyk wrote:
> Thank you for your reply !
> 
> <f:for each="{element.elements}" as="ele">
>                        <f:render partial="DocumentTemplateElement"
> arguments="{element: ele}" />
>                </f:for>
> 
> I`m not sure that I`m getting it. With this loop you`re iterating every
> child of the root ?
> 
> For example I have structure like this
> 
> - Block  1
>   - Block 1_1
>   - Block 1_2
>   - Block 1_2_1
>     Block 1_2_1_1
> - Block 2
>   - Block 2_1
> 
> I will get all of them ?

You call the partial from your template with:
<f:render partial="DocumentTemplateElement" arguments="{element: 
myDocumentTemplateElement}" />

And the partial calls itself recursively for the childs.

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list