[TYPO3-dev] order of rendering of plugins

stefano cecere scecere at krur.com
Wed Jan 30 02:26:01 CET 2008


hallo everybody
simple but very importnat topic for plugins developer

if in a template i have two markers, and i am filling them via TS template:

<div id="first">###PLUGIN_1###</div>
<div id="second">###PLUGIN_2###</div>


and in the TS template something like:

subparts.plugin_1 < plugin.tx_plug_pi1
subparts.plugin_2 < plugin.tx_plug_pi2


my two plugins are called in this order: pi1 first and p2 second.

BUT i need to call pi2 first and pi1 after it (because in pi2 i set some session variable that has to be read by pi1)

it seems IMPOSSIBLE to do it
i tried in every way but Typo3 seems to call the plugins followin the order of the ###TAGS### in the template.

could anybody comment this behaviour?

(right now the only solution i found is to change the order in the html template and reverse the positioning via complex CSS.
not very nice...)

many thanks
stefano




More information about the TYPO3-dev mailing list