[TYPO3-mvc] nesting short hand if queries

Franz Koch typo3.RemoveForMessage at elements-net.de
Wed Oct 20 17:51:17 CEST 2010


Hi,

> 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: '')}

I think you have to put the nested if-condition of the "then" part in 
quotes in order to get that working. Of course nested quotes have to be 
escaped then.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list