[TYPO3-dev] order of rendering of plugins
stefano cecere
scecere at krur.com
Wed Jan 30 16:34:07 CET 2008
no, i could not make it work...
:(
stefano
Franz Koch wrote:
> Hi Stefano,
>> 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?
>
> I don't know how complex your actual template is, but how about that:
> - Just use one marker - maybe ###PLUGIN_TOTAL####
> - use a COA and tricky TS to fill the marker:
> ------
> subparts.plugin_total = COA
> subparts.plugin_total {
> 10 = plugin.tx_plug_pi2
> stdWrap {
> innerWrap = <div id="second">|</div>
> prepend = COA
> prepend {
> 10 < plugin.tx_plug_pi1
> wrap = <div id="first">|</div>
> }
> }
> }
> ------
>
> should do the trick :)
>
> --
> Greetings,
> Franz
More information about the TYPO3-dev
mailing list