[TYPO3-english] Typoscript conditions with AND operator

Indira indira at seethroughweb.com
Tue Dec 17 23:07:49 CET 2013


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