[TYPO3] Value from extension to TypoScript
Christopher Torgalson
bedlamhotel at gmail.com
Sat Sep 1 21:08:13 CEST 2007
Hi,
On 9/1/07, Jan Bednarik <info at bednarik.org> wrote:
> Hey,
>
> is it possible to transfer a value from extension to TypoScript?
>
> If I have in ext sth. like
>
> $GLOBALS['FOO']['boo'] = 'value';
>
> and in TS:
>
> sth = TEXT
> sth.data = global : FOO|boo
>
> it doesn't work, because TEXT is rendered before the extension, that
> means, the value is set after it's rendered by TEXT element.
>
> Any ideas on how to make this work?
You can use LOAD_REGISTER [1] from inside the extension, and access
that register from TS--I've done similar things in extensions.
--
Christopher Torgalson
http://www.typo3apprentice.com/
[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/8/18/
More information about the TYPO3-english
mailing list