[TYPO3-english] Typoscript conditions with AND operator

Dirk Wenzel wenzel at webfox03.de
Thu Dec 19 10:03:30 CET 2013


Hi Indira,
your code looks good. Did you test the last condition alone?
[globalVar = TSFE:fe_user|sesData|reseller|is_subaccount > 0]

cheers
Dirk

Am 17.12.13 23:07, schrieb Indira:
> Hi guys:
> I have three conditions to hide pages from the main menu according to
> session variables.
> However, they don't work, it's showing me the pages I want to hide.
> Before I only had two scenarios so with [condition] [else] [global] I
> was fine. But then a third case appear.
>
> This is my code:
> [globalVar = TSFE:fe_user|sesData|reseller|is_reseller > 0]
>       lib.mainmenu.excludeUidList = 77,166
> [end]
>
> [globalVar = TSFE:fe_user|sesData|reseller|is_reseller = 0] &&
> [globalVar = TSFE:fe_user|sesData|reseller|is_subaccount = 0]
>       lib.mainmenu.excludeUidList = 158,165,166
> [end]
>
> [globalVar = TSFE:fe_user|sesData|reseller|is_reseller = 0] &&
> [globalVar = TSFE:fe_user|sesData|reseller|is_subaccount > 0]
>       lib.mainmenu.excludeUidList = 157,68,158,165,166
> [end]
>
> Thanks in advanced for you help,
> Indira.


More information about the TYPO3-english mailing list