[TYPO3-ect] translations with lib/div
Elmar Hinz
elmar07 at googlemail.com
Mon Jul 30 20:03:08 CEST 2007
>
> 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
The piint is, that "plugin.tx_bananas.configurations" doesn't hold "global"
configurations. It only holds *temporary* common configurations, that are
*copied* later in a certain line of the setup.txt file to both plugins
*before* the plugins are instantiated. That's why they are available for
both and "feel" global. In fact it's 2 times the same "real" configuration
in two different plugins now.
If you add new stuff *after* that "line of copy" to the so called "common"
configuration it has no effect any more. If you
alter "plugin.tx_bananas.configurations" in your template you do it
*after* "line of copy".
You CAN do that, but you MUST repeat the procedure of copiing and
instantiating too for both plugins, to overrule the original "line of
copy".
Alternatively you directly work on the two different plugins.
I hope that is precise enough and leads you to enlightenment.
A real "common global" setup would require an object to reference, so that
it can be altered in any line of the setup, even in the very last.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list