[TYPO3-mvc] nesting short hand if queries

Thomas Mammitzsch thomas at visualworx.de
Wed Oct 20 14:56:49 CEST 2010


hi list,

i want to use a Logical-And-condition in the ifViewHelper shorthand 
syntax, which throws an error, because the are more than 3 Arguments:

{f:if(condition:'{week.day1.date} == {arguments.datestart} && 
(condition:'{week.day7.date} == {arguments.datestop}', then: 
'pd_week_act', else: '')}

so i tried to nest it:

{f:if(condition:'{week.day1.date} == {arguments.datestart}', then: 
{f:if(condition:'{week.day7.date} == {arguments.datestop}', then: 
'pd_week_act', else: '')}, else: '')}

also doesn't work (although no error thrown by fluid, stays unreplaced 
in the html output).
Any idea how to get this done?

regards, Thomas

btw. is there an in depth documentation on fluid?


More information about the TYPO3-project-typo3v4mvc mailing list