[TYPO3-english] globalVar Condition problem
Peter Russ
peter.russ at 4many.net
Wed May 6 12:43:40 CEST 2009
--- Original Nachricht ---
Absender: Walrick
Datum: 06.05.2009 12:21:
> Peter Russ wrote:
> Ever tried conditions in constants?
>> CONSTANTS:
>>
>> ...
>>
>> restrictedPage=0
>> [globalVar = TSFE:page|fe_group = -2,TSFE:page|fe_group = 1] ||
>> [globalVar = TSFE:page|fe_group = -2,TSFE:page|fe_group = 2]
>> restrictedPage = 1
>> [end]
>
> Ah, but I'm not looking for fe_group = 1 OR group = 2
> The condition should if page|fegroup contains"
> -2
> 1
> 1,2
> 2,1
>
By the way: if you check for -2 as mentioned, ANY logged user will be
able to see ;-)
And a check for -2 AND 1 doesn't make sense as if a user is member of
usergroup 1 he will also be member of -2 (any logged user)!
So think about what you want to check!
Perhaps a userfunction in condition could give you what you want in just
few lines ;-)
Peter.
--
Fiat lux! Docendo discimus.
_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ
More information about the TYPO3-english
mailing list