[TYPO3-dev] LOAD_REGISTER

JoH asenau info at cybercraft.de
Thu Dec 7 19:14:51 CET 2006


> I'm trying to pass a value from my extension back to typoscript.
>
> To do so I register that value within my extension:
>
> $this->l_cObj = t3lib_div::makeInstance('tslib_cObj');
> $this->l_cObj->LOAD_REGISTER(array('myValue' => 'TYPO3 is cool!'),'');
>
> Within my TS template I try to assign this value to some TEXT object:
>
> page.200 = TEXT
> page.200.data = register:myValue
>
> This does not show anything BUT It works properly when using
> register:SYS_LASTCHANGED instead.
>
> What am I missing?
>
> According to debug($GLOBALS['TSFE']->register) the value "TYPO3 is
> cool!" is assigned.
>
> Any ideas?!

Could it be that your plugin/extension is a non-cached USER_INT?
Then the register is set but _after_ the rendering of the rest of the
content, so during the rendering no register will be available.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com






More information about the TYPO3-dev mailing list