Feature #19647
closedChange rendering order of plugins by typoscript
0%
Description
Sometimes its necessary to call front end plugins in another order than they have to apply in the code sent to the client.
Examples therefore are right aligned shopping carts in online shops being called before a centered content element potentially filling the cart is called because of floating habits of right aligned objects.
My approach is to define priority values for plugins by typoscript and call them in the order of theyr priority value when rendering the output.
(issue imported from #M9846)
Files
Updated by Oliver Hader almost 16 years ago
I'm not sure if things get too complicated with renderPriority. Maybe I have to think again about this one - it's tricky, but is a real scenario.
If only a few plugins are affected you can "postpone" the rendering process of a USER_INT with a wrapping COA_INT.
Initial example:
10 = COA
10 {
10 = USER_INT
10.userFunc = pluginA->main
20 = USER_INT
20.userFunc = pluginB->main
}
Changed exampled, with pluginB getting postponed:
10 = COA
10 {
10 = USER_INT
10.userFunc = pluginA->main
20 = COA_INT
20 {
10 = USER_INT
10.userFunc = pluginB->main
}
}
Updated by Ernesto Baschny about 14 years ago
Not in core list, and solution proposed by Olly seems reasonable.