[Neos] how to specify the order of typo3-flow front end plugin actions called on a neos page?

Christian Müller christian.mueller at typo3.org
Fri Jan 30 11:49:52 CET 2015


On 2015-01-26 20:14:02 +0000, Calgacus map Brude said:

> I have a page defined in Neos which has several front end plugins on 
> it. I need plugin X to get called (its action run) before plugin Y. How 
> can I specify that? Thanks
> 
> PS: the reason I need this is because Plugin X adds some variables 
> (filter options for searching) to the session eg 
> $this->session->putData('filters',$filters) which will be used by 
> plugin Y if they are present eg $filters = 
> $this->session->getData('filters'). Currently plugin Y runs first and 
> so the session variables are not there to be used yet.
> 
> Maybe what I want to do is not possible and the plugin needs to be 
> redesigned but before I go that route I'd like to know for sure.
> 
> (question first asked at 
> http://stackoverflow.com/questions/28118548/how-to-specify-the-order-of-typo3-flow-front-end-plugin-actions-called-on-a-neos 
> )

The execution order is the order of the TypoScript so if you can 
reorder it in a way that Plugin X is declared before the other one in 
TypoScript it might work. If they are both inserted as content in the 
same content collection after one another that will not be possible. 
The ContentCollection is rendered in order as everything else. It will 
probably be very hard. I would probably try to do that differently. You 
shouldn't rely on the order of two plugins. Rather build either one 
plugin from it or call plugin Y in an ajax request.

 
-- 
Christian Müller
Flow / Neos Team Community Contact

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org


More information about the Neos mailing list