I don't know if this is the right place to ask, but I saw this topic:
https://www.phpbb.com/community/viewtop ... #p14728611
And it's not the first time that I see the same question.
Can this be added in standard phpBB?
I think this is a function that will be used a lot..
Extensions load order
Re: Extensions load order
As I understand from several topics where this has been discussed in the past this it is not possible with the current phpBB versions to specify the load order of template events.
I also believe that it may be possible once all styles move over to Twig where there are some additional features that can be used so I doubt that this will happen before the "new" phpBB style is created and released.
I also believe that it may be possible once all styles move over to Twig where there are some additional features that can be used so I doubt that this will happen before the "new" phpBB style is created and released.
David
Remember: You only know what you know -
and you do not know what you do not know!
Remember: You only know what you know -
and you do not know what you do not know!
Re: Extensions load order
Quick way around this. Beware as this will be lost any time that you install a new version of any of the affected extensions.
Say you have
Then, you open:
At the beginning insert:
And at the end of the file, insert:
Now open:
At the beginning insert:
That should do it, but please, test it and see if it does what you want.
Agree that this is a much needed feature. When I get the time (isn't that always the issue?) I will try to create such an extension at least.
Hope this helps,
-javiexin
Say you have
vendor1/extA
and vendor2/extB
extensions, both using event page_blah
. And you want them to be loaded in the order A then B.Then, you open:
ext/vendor1/extA/styles/x/template/event/page_blah.html
At the beginning insert:
Code: Select all
<!-- IF not $INCLUDED_VENDOR1_EXTA -->
<!-- DEFINE $INCLUDED_VENDOR1_EXTA = true -->
Code: Select all
<!-- ENDIF -->
ext/vendor2/extB/styles/x/template/event/page_blah.html
At the beginning insert:
Code: Select all
<!-- IF not $INCLUDED_VENDOR1_EXTA -->
<!-- INCLUDE @vendor1_extA/event/page_blah.html -->
<!-- ENDIF -->
Agree that this is a much needed feature. When I get the time (isn't that always the issue?) I will try to create such an extension at least.
Hope this helps,
-javiexin