[TYPO3-english] TScript Condition NOT operator?

Björn Pedersen pedersen at frm2.tum.de
Thu Apr 14 09:36:10 CEST 2011


Am 14.04.2011 09:08, schrieb Martin Mädler:
> Hello,
> 
> I haven't seen this documented anywhere, but I ran into a problem where
> I need a NOT operator in one of my conditions. Since it is not possible
> to nest conditions, I broke mine up into 3 seperate conditions. The
> logic should work like this:
> 
> [loginUser = 1] # if user 1 is logged in (IP not relevant)
>   temp.submenu.excludeUidList = 118
> [IP = 12.345] && [loginUser = !1] # if IP starts with 12.345 and no user
> is logged in
>   temp.submenu.excludeUidList = 97
> [else] # IP doesn't match and not logged in (there is only one fe-user)
>   temp.submenu.excludeUidList = 97, 118
> [global]
> 
> Do have an idea how I can solve this, am I missing something? When I
> just use [IP = 12.345] instead of [IP = 12.345] && [loginUser = !1], my
> menu is always missing item 97, even when logged in.
> 
> Thanks
> -Martin

Is this really what you want to do? Just hide the menu entry (the pages
will still be available)?

I would use 2 usergroups for this:
One is set via the IP ( there is an extension for that).
The user is a member of both groups.
 Then 118 has groupacces set to group 2,
 97 has groupaccess set to group 1.

Björn



More information about the TYPO3-english mailing list