[Typo3-dev] Wildcard match on globalString
Ries van Twisk
typo3 at rvt.dds.nl
Sat Oct 1 02:00:37 CEST 2005
Dear Developers,
am I correct that wildcardMatch is not completely supported as read from
tsRef?
When reading it can do this on loginUser
[loginUser = *]
[end]
But when I try to do this:
[globalString = TSFE:page|tx_rvtgbweathericaotag_icao = *]
[end]
The routine: function matchWild($haystack,$needle) {...}
Doesn't do a wildcard match on just *,
I would suspect (I might be wrong) that it would match any empty string there.
Instead this case condition get's triggered and does a exact match.
case 'beforeafter':
if (strstr($haystack,substr($needle,1,-1))) return true;
break;
What can I do to do a wildcard on globalString (match a non empty
string)? except writing a user function.....
cheers,
Ries van Twisk
More information about the TYPO3-dev
mailing list