[FLOW3-general] (FLUID) Assemble TagBasedViewHelper manually
Martin Kutschker
masi-no at spam-typo3.org
Thu Feb 4 18:03:10 CET 2010
Michael Sauter schrieb:
>
> One other idea came to my mind: Maybe it would be better to introduce
> new nodes when parsing the template, not when rendering it. E.g. after
> parsing a ViewHelper, calling a method in it that can inject new nodes
> into the object tree. What do you think ... or is this idea crap? ;)
You mean a two step process?
Step 1: parsing the template creates a node tree. Normally nodes will be created from the elements
(tags) found in the template but can be injected during the process or afterwards.
Step 2: walking the tree renders the output.
This would probably solve this issue:
<f:widget.tabs>
<f:widget.tab title="static tab">
Foo bar
</f:widget.tab>
<f:repeat for="{objects}" as="object">
<f:widget.tab title="{object.title}">
{object.description}
</f:widget.tab>
</f:template>
</f:widget.tabs>
The idea is that the "repeat" injects its content as child nodes to the parent.
Masi
More information about the FLOW3-general
mailing list