[TYPO3-dev] order of rendering of plugins

Steffen Kamper steffen at sk-typo3.de
Wed Jan 30 10:35:14 CET 2008


"stefano cecere" <scecere at krur.com> schrieb im Newsbeitrag 
news:mailman.1.1201685439.28224.typo3-dev at lists.netfielders.de...
> Dmitry Dulepov [typo3] wrote:
>> Hi!
>>
>> stefano cecere wrote:
>>> yes.. your is a pragmatical solution.. not very nice from the 
>>> programming style...
>>
>> Why not? It is quite logical: one part prepares data, other displays that 
>> data.
>>
>
>
> well.. it's not always that easy:
>
> right now i have a HUGE extension/application, that handles >20 classes 
> and tons of sessions data.
> and it works perfectly.
>
> in this "tiny" plugin in the header i just want to show the some results 
> of the application (let's say it's a cart total)
>
> the way Typo3 works now, it calls the plugins using the order they have as 
> MARKERS in the output template!
>
> now you suggest me that the best wway is to put the logical stuff in the 
> first plugin to be displayed?
> what if i change it later?
>
> or in a empty one at the beginning...
>
> uhm.. it doesn't sound nice..
>
> maybe i should take care of the rendering of the WHOLE body content by my 
> extension.. but the i'd loose (or should re-code) many typo3 features...
>
>
> stefano

Hi,

i prefer in such cases to use the pi1 only as a switcher that includes other 
files. So you have one cObj, one piVars array etc. and no transfer problems 
between different pi-modules.

vg  Steffen 






More information about the TYPO3-dev mailing list