Forums / Developer / extension.xml
Sander van den Akker
Wednesday 02 March 2011 2:54:28 am
I have built an extension that both depends on and extends ezjscore by overriding settings from ezjscore.ini. In my opinion this is good practice, but for some reason it seems incompatible with the current extension dependency implementation since those two can't be combined.
Has anyone come across this before?
eZ Publish certified developer http://auth.ez.no/certification/verify/392313
André R.
Wednesday 02 March 2011 3:45:39 am
This was what something like this should cover:
<dependencies> <requires> <extension name="ezjscore" /> </requires> <extends> <extension name="ezjscore" /> </extends> </dependencies>
As requires was intended to only make sure extension is not loaded (with warning/error) if whatever it requires is not loaded. If that does not work, then you should report a bug for it (and refer to this thread). (The reason why it migth not work is that we went from a after/before logic to requires/uses/extends, but internals are still using simple after/before logic)Work around is to only specify extends I guess, so it forces your extension to be loaded after ezjscore.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Wednesday 02 March 2011 4:20:52 am
Ah right, so we're still in the middle of a migration. In that case I'll stick with extends for now ;) Thanks for the help!
Thomas Negeli
Tuesday 05 April 2011 11:39:27 pm
Basically load ordering of extensions works for me (Release 4.4). The extensions are loaded in the correct order into the active extension cache, according to this article here http://doc.ez.no/eZ-Publish/Technical-manual/4.4/Installation/Extensions/Extension-load-ordering
But I have a problem when it comes to property overriding, which should work when the extensions are loaded in a proper way.
I have a "settings.ini" file in one of my extensions. In another extension, which is loaded afterwards, I have a "settings.ini.append.php" file, which is loaded but the settings of the "settings.ini" file have higher priority.
Has anyone tried extension ordering with settings override mechanism, or does it not work at the moment?
According to this issue here http://issues.ez.no/IssueView.php?Id=18075&ProjectId=3 it seems to be work in progress.