[TYPO3-english] TYPO3 6.2.x: if.isInList not working as expected

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Mon Sep 19 09:59:41 CEST 2016


Hello Helmut,

Thanks for testing! Indeed, when I rechecked my complete TS, there was 
an incomplete block I copied to this part, causing the problem.
I fixed that and now it works as expected, a big thanks!!!

Bert

On 19/09/16 00:18, Helmut Hummel wrote:
> Bert Hiddink [BENDOO e-work solutions] wrote:
>> Hello,
>>
>> I have a problem with if.isInList-statement
>>
>> ...
>>          renderObj.wrap.override.if {
>>               isInList.field = uid
>>               value.data = GP:tx_news_pi1|overwriteDemand|categories
>>          }
>> ...
>>
>> The override-statement turns true if I send fe from the browser
>> "tx_news_pi1[overwriteDemand][categories]=1935".
>>
>> If I send multiple values like this
>> "&tx_news_pi1[overwriteDemand][categories]=1935,1923,9345" then it NEVER
>> turns true.
>
> page.1 = TEXT
> page.1.value = Value
> page.1.override = Override
> page.1.override.if.isInList = 1935
> page.1.override.if.value.data = GP:tx_news_pi1|overwriteDemand|categories
>
>
> This prints out "Override" for
> tx_news_pi1[overwriteDemand][categories]=1935 and
> tx_news_pi1[overwriteDemand][categories]=1935,1923,9345
>
> in my TYPO3 6.2
>
> Maybe your error is not the isInList condition, but nested more deeply
> in your TypoScript?
>
> Kind regards,
> Helmut
>



More information about the TYPO3-english mailing list