[TYPO3-english] globalVar Condition problem

Peter Russ peter.russ at 4many.net
Wed May 6 11:17:44 CEST 2009


--- Original Nachricht ---
Absender:   Jigal van Hemert
Datum:       06.05.2009 11:12:
>>> 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)

for globalString. Does this also work for globalVar?

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