[TYPO3-english] TS match condition problem
info at cybercraft.de
Sun Dec 20 20:56:52 CET 2009
> I'm trying to write a template like this
> page.5 = LOAD_REGISTER
> [globalVar = TSFE:register|something=1]
> But this contion is never fired. I've tried to debug a bit and I found
> that when the condition is evaluated at
> the array $GLOBALS['TSFE']->register only have the entry
> SYS_LASTCHANGED at the end of pagegen.php file it is set ok
> Are there any kind of problem with my code or with matchcondition
Well - since TypoScript gets parsed before it is "executed", the order is
You can't set a register via TypoScript and then match a condition since the
condition will be checked while parsing.
So you should go for a CASE or mabe "if" instead.
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
TYPO3 cookbook (2nd edition): http://www.typo3experts.com
More information about the TYPO3-english