[TYPO3-mvc] Fluid - using an array in condition?

Martin Kutschker masi-no at spam-typo3.org
Tue May 11 17:51:04 CEST 2010


Felix Oertel schrieb:
> Hi
> 
> Am 10.05.10 21:24, schrieb Martin Kutschker:
>> I would like to see numeric arrays without the need to spell out the
>> indices: ['a', 'b', 'c'] instead of {0: 'a', 1: 'b', 2:'c'}.
> 
> YAY !
> 
> <f:format.striptags allow="{0: 'p', 1: 'br'}"> ... that suck's ;-)
> 
> {'p','br'} would be great ... as I see me going for a string "p|br" for
> easier reading. ;)

I suggest square brackets to distinct lists (numeric arrays) from objects.

Maybe with a optional part (separated by a semicolon) denoting the starting index (defaulting to zero):

[ 1; 'p', 'br' ]

Masi


More information about the TYPO3-project-typo3v4mvc mailing list