Project

General

Profile

Actions

Feature #19647

closed

Change rendering order of plugins by typoscript

Added by Stephan Schuler almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2008-11-26
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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

class.tslib_fe.php.trunk.diff (2.96 KB) class.tslib_fe.php.trunk.diff Administrator Admin, 2008-11-26 14:31
Actions #1

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
}
}

Actions #2

Updated by Ernesto Baschny about 14 years ago

Not in core list, and solution proposed by Olly seems reasonable.

Actions #3

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF