[TYPO3-ect] translations with lib/div

Steffen Kamper steffen at sk-typo3.de
Mon Jul 30 19:19:44 CEST 2007


"Elmar Hinz" <elmar07 at googlemail.com> schrieb im Newsbeitrag 
news:mailman.1.1185813581.18004.typo3-team-extension-coordination at lists.netfielders.de...
>> Hi,
>>
>> sure, i did that with same result.
>> function main($input, $configurations, $context=NULL, $parameters=NULL) {
>>
>>  try to follow:
>> In bananas there are 2 controllers extending tx_lib_controller. The
>> incoming configuration-Array is the defined one from setup.txt.
>> So i think the $GLOBALS['TSFE']->tmpl should be used for the
>> configurations because there is the run-through-page-templates.
>
> Already tslib_pibase gets the configurations via main(). That's working
> definitly.
>
> It's a question of proper TS use!!! All you need to know has already been
> written in this thread.
>
> I do a test. I add following lines to my TS-template
>
> plugin.tx_bananas.controllers.form.test1 = test1
> plugin.tx_bananas.controllers.form._LOCAL_LANG.default.title = neuer Titel
>
> and get them as expected in $this->configurations->dump();
>
> test1                           test1
> _LOCAL_LANG.default.title       neuer Titel
>
>
> So everything works fine.
>
> Regards
>
> Elmar
>

Hi Elmar,

may be i'm outing as totally stupid, but i don't understand:

plugin.tx_bananas.controllers.form.test1 = test1
confirmed, that works
plugin.tx_bananas.configurations.any setting
doesn't work

So what does the difference ?
plugin.tx_bananas.configurations holds the "global" configuration., 
plugin.tx_bananas.controllers are the both plugins.

I never saw such a "write-protected" TS-Section, does i come from Mars ?

vg  Steffen 




More information about the TYPO3-team-extension-coordination mailing list