[TYPO3-mvc] shorthand fluid

Chris Wolff - AERTiCKET AG cwolff at aer.de
Fri May 9 14:40:48 CEST 2014


Hi Maybe you could use an Partial
To to render the output of your statement 
In the partial you can use the "xml-syntax" of fluid.
And call the partial with the shorthand syntax.

Reagards chris

-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Stig Nørgaard Færch
Gesendet: Freitag, 9. Mai 2014 14:04
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: Re: [TYPO3-mvc] shorthand fluid

Den 09-05-2014 13:43, Xavier Perseguers skrev:
> Hi Stig,
>
>> This works fine:
>> {person.name -> f:for(each: {1:{name: 'John'},2:{name:'Peter'}}, as:
>> 'person')}
>
> This is hardly readable.
>
>> But how can I insert a br tag just after person.name?
>>
>> This of course does not work:
>> {person.name <br/> -> f:for(each: {1:{name: 
>> 'John'},2:{name:'Peter'}},
>> as: 'person')}
>>
>> Are there any in depth explanation of the shorthand fluid code?
>
> Create a dedicated VH for that, will be much simpler and better readable.


I'm going to use this once. So if I can avoid a view helper for this, I would prefer that.

Is it possible?

/Stig


_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list