简体   繁体   中英

Typo3 plugins load order

Is there any way of controlling the load order of plugins? The load order has recently been changed on my site (I have no clue why) and I need to restore it. I was trying different things but with no luck.

My TypoScript is as follows:

#plugin pi2 is used for render the page content. It is placed on page in visual editor
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

#plugin pi4 - this should run after pi2
lib.banner < plugin.tx_marvelino_pi4

I was trying to change the order of defined variables, edit templavoila mapping and get rid of templavoila main page call and run pi2 dirrectly and pass to page.10.CONTENT but it did not work.

The order is defined in $TYPO3_CONF_VARS['EXT']['extList'] and $TYPO3_CONF_VARS['EXT']['extList_FE'] in the typo3conf/localconf.php or the corresponding array elements in typo3conf/LocalConfiguration.php if your TYPO3 is v6.0+

When you install new extensions in the backend, the most recent ones just get added at the end. When you uninstall extensions, those are just taken out of the list.

UPDATE:

You can not only use page.10 to assign objects to the rendering queue, but any other number as well. The natural order of the numbers is also the rendering order in the frontend then.

page.10 < plugin.tx_whatever_pi2
page.20 < plugin.tx_marvelino_pi4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM