[Typo3] getting typoscript constant values
Guillaume Crico
guillaume.crico at getronics.com
Thu Apr 28 16:11:11 CEST 2005
Meinte van't Kruis a écrit :
> Hi folks,
>
> Trying to print predefined constants in my extention... I've defined
> the constants in
> ext_typoscript_constants.txt:
>
> plugin.tx_extxml_pi1{
> # cat=xml_reader/enable/0; type=file; label=xml stuff: tralalala
> xml=fileadmin/xml/test.xml
>
> # cat=xml_reader/enable/1; type=string; label=xml stuff: tralalala
> childnodes=firstchild,firstchild.firstchild
> }
>
> Now the Pibase class is trying to print them, but it shows no values:
>
> function main($content,$conf) {
> return var_dump($conf);
> }
>
> Am I doing something wrong here?
>
> Thx
Import the constants in your conf by the setup (ext_typoscript_setup.txt) :
plugin.tx_extxml_pi1.xml = {$plugin.tx_extxml_pi1.xml}
plugin.tx_extxml_pi1.childnodes= {$plugin.tx_extxml_pi1.childnodes}
... and clear your caches (both...)
More information about the TYPO3-english
mailing list