[TYPO3-english] globalVar Condition problem

Peter Russ peter.russ at 4many.net
Wed May 6 12:33:28 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
> 
> But not when it's
> empty
> 0
> -1
> 2
> 
> So it should apply for every page which is not public and which
> usergroup 1 can see.
> 
> Walrick
> 

As I just took your code you can apply any changes to your requirements. 
I will NOT develop it for you.
But I guess you've got at least an idea how to solve it...

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