[TYPO3-english] globalVar Condition problem
Jigal van Hemert
jigal at xs4all.nl
Wed May 6 11:12:18 CEST 2009
>> I'm using the following condition to do something:
>>
>> [globalVar = TSFE:page|fe_group = -2,TSFE:page|fe_group = 1] &&
>> [usergroup = 1,2]
>>
>> However I would like the condition also to apply if the fe_group field
>> of the page record contains 1,2 or 2,1.
You can use regular expressions. I think something like
[globalVar = TSFE:page|fe_group = /(^|,)2(,|$)/]
will match values such as:
2
1,2
2,3,5
1,2,-1
(not tested, but TSref mentions this syntax)
--
Jigal van Hemert.
More information about the TYPO3-english
mailing list