[TYPO3-ect] [tx_lib] is it a bug ?
    Elmar Hinz 
    elmar.DOT.hinz at team.MINUS.red.DOT.net
       
    Sat Jun 30 12:53:43 CEST 2007
    
    
  
Fabien Udriot wrote:
> It seems the constants from constants.txt are not replaced in the
> setup.txt.
> 
> Let's says we have the 2 configurations files :
> - configurations/constants.txt
> - configurations/setup.txt
> 
> -> in configurations/constants.txt :
> 
> pluginName.value = 3
> 
> 
> -> in configurations/setup.txt :
> 
> plugin.tx_ecosubscription.configurations {
>      myValue = ${pluginName.value}
> }
> 
> -> in the controller :
> 
> echo $this->configurations->get('myValue');
> 
> // outup : ${pluginName.value}
> // instead of : 3
> 
> Is it a bug ? or feature missing ?
There are 2 alternative ways to handle the configuration to the
configuration object, traditional or as plain TS path (key). At least the
traditional way should work with constants. It's shown in bananas.
The alterantive path method takes the setup
from "$GLOBALS['TSFE']->tmpl->setup". Maybe that's without  configuration
replacement. Any idea how this could be improved than? Or should we remove
the alternative way to reduce confusion. 
Regards 
Elmar
    
    
More information about the TYPO3-team-extension-coordination
mailing list