[Typo3] getting typoscript constant values

Meinte van't Kruis meinte at gmail.com
Thu Apr 28 17:00:45 CEST 2005


The problem I'm having now though:

When changing values through the constant editor, the changes in $conf
stay on the default value.. :( Anyone knows bout that?

thx!

On 4/28/05, Meinte van't Kruis <meinte at gmail.com> wrote:
> ewwww, it was the caching all along :'(. I thought 'clear all cache'
> meant clear everything cached, but maybe my english is different....
> 
> On 4/28/05, Meinte van't Kruis <meinte at gmail.com> wrote:
> > this was my setup all along:
> >
> > plugin.tx_extxml_pi1{
> >         xml={$plugin.ext_xml.xml}
> >
> >         childnodes={$plugin.ext_xml.childnodes}
> > }
> > ill try and clear both caches, but perhaps im missing some point somewhere
> >
> > On 4/28/05, Guillaume Crico <guillaume.crico at getronics.com> wrote:
> > > 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...)
> > >
> > >
> > > _______________________________________________
> > > Typo3-english mailing list
> > > Typo3-english at lists.netfielders.de
> > > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> > >
> >
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



More information about the TYPO3-english mailing list