[TYPO3-mvc] creating nodes in FLUID - how to?

Martin Kutschker masi-no at spam-typo3.org
Thu Feb 4 12:37:56 CET 2010


Hi!

I've been playing a bit with the widget idea and came cross Franz's request to generate children on
the fly. In the example I have chosen "repeat for" to use a natural language construct different
from "for each". The main difference between them is that for-each will render it's children, but
repeat-for will create nodes to be rendered by its parent.

<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>

Does this make sense? Is this possible?

Masi


More information about the TYPO3-project-typo3v4mvc mailing list