[TYPO3-mvc] FLUID: extended loop features
Thomas "Thasmo" Deinhamer
thasmo at gmail.com
Thu Jan 7 00:14:23 CET 2010
Maybe this is an idea for the seperate/join thingy:
<f:for each="{objects}" as="object">
<h1>{object.title}</h1>
<p>{object.description}</p>
<f:for.seperator>
<hr />
</f:for.seperator>
</f:for>
Franz Koch schrieb:
> Hi Sebastian,
>
>>> how about switching more complex stuff, like subtemplates or stuff. Is
>>> > there a alternative for the inline syntax?
>> ? You can always use the inline syntax to call a ViewHelper. But maybe I
>> don't understand the question:-)
>
> I wanted to know if there is a alternative to the "onliner" syntax if
> one might need to use more complex HTML syntax than a simple css class
> name to be returned by the viewHelper, so instead of:
>
> <f:cycle values="{0: 'odd', 1: 'even'}" />
>
> something like
>
> <f:cycle>
> <f:case value="0">
> <hr />
> <h2 class="whatever">Some more complex markup</h2>
> </f:case>
> <f:case value="1">
> <h2>blah</h2>
> </f:case>
> </f:cycle>
>
>
> But according to the docs I just read it isn't. But I noticed that one
> can assign the output as a variable - that already helps a lot I think.
> This var could also be handed over to partials as long as it's only
> even/odd you need.
>
> PS: I love fluid more and more I read the docs and start using/testing
> it. Thanks for that great piece of work.
More information about the TYPO3-project-typo3v4mvc
mailing list