Configuration load order in eZ Publish
Jerry Wang | January 25, 2011Firstly, please check the technical manual if you are not familiar with the configuration concept in eZ Publish.
In this article I will provide a short article about reading order of configuration file. I assume that you have already used eZ Publish in real projects and have idea about configuration (ini) in eZ Publish.
What is configuration’s order? When a siteaccess is used, eZ Publish reads the configuration files using the following sequence:
0 Default configuration settings – /settings/*.ini?
1 Active extension siteaccesses – /extension/my_extension/settings/siteaccess/my_site/*.ini.append.php
2 Siteaccesses - /settings/siteaccess/my_site/*.ini.append.php?
3 Active extensions – /extension/my_extension/settings/*.ini[.append.php]?
4 Global overrides – /settings/override/*.ini.append.php
In other words, eZ Publish will first read the default configuration settings. Secondly, it will read my_site/*.ini.append.php to find the siteaccesses for the active extensions during the installation. Then, it will determine which siteaccess to use according to the rules defined in the global override for “site.ini” (“/settings/override/site.ini.append.php”). When it knows which siteaccess to use, it will go into the directory of that siteaccess and read the configuration files belonging to that siteaccess. Lastly, it will go into the configuration file for the active extensions and read the configuration files for the active extensions. The settings of the siteaccess will override the default configuration settings.
But, if we have many extensions providing similar configuration information, which one we should use? That’s the issue about configuration override among extensions.
For example:
`– extension
|– ini_1
| `– settings
| `– test.ini.append.php
`– ini_2
`– settings
`– test.ini.append.php
And content of test.ini.append.php in ini_1 extension is:
[IniOrderTest]
CurrrentActiveName=ini_1
As you may guess, content of test.ini.append.php in ini_2 will be:
[IniOrderTest]
CurrrentActiveName=ini_2
So, if we want to read content of ‘CurrentActiveName’ in block ‘IniOrderTest’, which value should it be? The truth is: it depends on the load order of extensions.
For eZ Publish version less than 4.3, the load order is defined in ‘ActiveExtensions[]‘ under ‘ExtensionSettings’ block. For example:
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ini_1
ActiveExtensions[]=ini_2
Then the value for ‘CurrentActiveName’ in block ‘IniOrderTest’ should be ‘ini_1′, because eZ Publish uses prepending order to register extensions into configuration list during the activation of extensions. That means eZ Publish firstly activates extension ‘ini_1′ and register this extension into the list, then activates extension ‘ini_2′ and prepends ‘ini_2′ into the list. So, at the moment of reading configuration value, the order will firstly be ‘ini_2′, then ‘ini_1′.
The situation has changed since eZ Publish 4.4. This version introduces a new concept about extension dependency called ‘topology’. You can have a look at ‘extension.xml’ file in ezOE extension, which required ‘ezjscore’ extension as defined.
Let’s see how ‘extension.xml’ affects the result of configuration. We define dependency in ini_2 as following:
<dependencies>
<uses>
<extension name=”ini_1″ />
</uses>
</dependencies>
The word ‘extends’ define the ‘before’ relation, and words ‘required’ or ‘uses’ define the ‘after’ relation. The above example means that extension ‘ini_2’ uses extension ‘ini_1′, so the extension ‘ini_1’ should be firstly activated. Actually, this relation can be represented as:
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ini_1
ActiveExtensions[]=ini_2
As you know, configuration system will prepend ini_2 before ini_1. So, ini_1 configuration value can override the value from ini_2. When you want to read ‘CurrentActiveName’ in block ‘IniOrderTest’, you will get ‘ini_1′.
In conclusion, eZ Publish 4.4 has improved loading order of extension by introducing the ‘topology’. Keep in mind, the extension order is the reverse of the order of configuration list, since it uses prepending method when activates extensions.






Thank you for this tut, nice use of the google tools!
Just wish to say your article is as astounding. The clearness in your post is just cool and i can assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming article. Thanks a million and please continue the gratifying work. Kind regards,
Hi there! This is my first visit to your blog! We are a team of volunteers and starting a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a marvellous job!
My partner and I absolutely love your blog and find almost all of your post’s to be exactly I’m looking for. Would you offer guest writers to write content available for you? I wouldn’t mind creating a post or elaborating on a number of the subjects you write related to here. Again, awesome web log!
When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three e-mails with the same comment. Is there any way you can remove me from that service? Bless you!
Yesterday, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!
My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about a year and am nervous about switching to another platform. I have heard good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any help would be greatly appreciated!
Nice post. I study one thing tougher on completely different blogs everyday. It would always be stimulating to read content from other writers and apply slightly one thing from their store. I抎 choose to make use of some with the content on my weblog whether or not you don抰 mind. Natually I抣l provide you with a hyperlink in your web blog. Thanks for sharing.
Wow that was odd. I just wrote an extremely long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Regardless, just wanted to say superb blog!
The heart of your writing while sounding agreeable originally, did not really work properly with me personally after some time. Someplace throughout the paragraphs you actually were able to make me a believer unfortunately just for a very short while. I still have a problem with your leaps in logic and you might do well to fill in those breaks. If you actually can accomplish that, I will certainly be impressed.
I see a lot of good content in blogen.bysoftchina.com !
earn money online
Ok, I’m going back to my movie! Miss you all! XOXOX
I like the worthful information you provide in your articles. I will bookmark your site and check again here regularly. I’m quite sure I will learn several new stuff right here! Good luck for the next!
I consider something truly special in this site.
very good post, i certainly love this website, keep on it
I was studying some of your posts on this website and I believe this site is very informative! Keep on posting.
Thanks for the sensible critique. Me and my neighbor were just preparing to do some research on this. We grabbed a book from our area library but I think I learned more from this post. I am very glad to see such fantastic information being shared freely out there…
Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my trouble. You are wonderful! Thanks! your article about Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish Best Regards Lawrence Andy
Great article! I think we will continue to see such as time and the economy progress.
Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a bit, but instead of that, this is magnificent blog. A fantastic read. I’ll certainly be back.
Thanks for the concepts you have contributed here. On top of that, I believe there are numerous factors which will keep your insurance premium all the way down. One is, to take into account buying motors that are inside the good list of car insurance companies. Cars that happen to be expensive are more at risk of being snatched. Aside from that insurance is also using the value of the car, so the higher in price it is, then higher your premium you have to pay.
You should take part in a contest for one of the best blogs on the web. I will recommend this site!
I visited a lot of website but I conceive this one contains something extra in it. “Two souls with but a single thought, Two hearts that beat as one.” by Fredrich Halm.
Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish I was recommended this blog by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my difficulty. You are wonderful! Thanks! your article about Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ PublishBest Regards SchaadAndy
Many thanks for a tremendous put up, may see one’s others content. thanks for your ideas with this, I really felt a bit thump by this post. Many thanks again! You make a good aspect. Has fantastic facts here. I believe that in case a greater number thought about it like this, they’d have a better time receive the hang ofing the situation.
woh I am delighted to find this website through google.
Very great layout! How did you get it?
yahoo is so neat, when i am bored i just surf the net and see what i can find to entertain me. good job
So want to incessantly acquire current wonderful website ! .
Helpful information. Fortunate me I discovered your site by chance, and I am shocked why this twist of fate didn’t took place earlier! I bookmarked it.
hello!,I like your writing very a lot! proportion we keep in touch more approximately your post on AOL? I need a specialist on this house to solve my problem. Maybe that is you! Taking a look forward to see you.
Very great layout I think.
Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is magnificent, let alone the content!. Thanks For Your article about Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish .
There are many factors that determine the value of a back-link. Backlinks through respected sites on a provided topic tend to be extremely valuable.[3] In the event that each sites possess content material aimed toward the actual key phrase subject, the backlink is considered relevant as well as thought to have powerful influence on google search positions from the web page given the back-link. The back-link signifies a good ‘editorial vote’ for that getting web page from another allowing web page. Another important element is the anchor-text of the backlink. Anchor text is the descriptive marking from the website link because it seems on a web page. Internet search engine robots (we.e., bots, spiders, etc.) look at the actual anchor-text to judge exactly how relevant it is to the content material on the webpage. Anchor text and web page content congruency tend to be extremely heavy in search motor search engines (SERP) search positions of the web page with respect to any given key phrase query with a search engine user.
Greetings! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa? My website covers a lot of the same subjects as yours and I feel we could greatly benefit from each other. If you’re interested feel free to shoot me an e-mail. I look forward to hearing from you! Great blog by the way!
your blog is such a wonderful place to socialize, you have a lot of well written and fun to read articles no wonder you have a good following in your website. I will definitely bookmark this and make sure to regularly check for updates Thank you for this article. I am going to bookmark this page for future reference.
Hello! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good gains. If you know of any please share. Thanks!
I conceive other website proprietors should take this site as an example, very clean and great user genial layout.
Hi! I could have sworn I’ve been to this site before but after checking through some of the post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back often!
Spot on with this write-up, I truly feel this site needs far more attention. I’ll probably be back again to see more, thanks for the information!
I think this is among the most significant information for me. and i am glad reading your article. But want to remark on few general things, The website style is great, the articles is really great
. Good job, cheers
I was just looking for this info for a while. After 6 hours of continuous Googleing, at last I got it in your site. I wonder what is the lack of Google strategy that do not rank this type of informative web sites in top of the list. Normally the top web sites are full of garbage.
Heya! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no backup. Do you have any methods to stop hackers?
Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You’re incredible! Thanks! your article about Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ PublishBest Regards Lisa
Fantastic goods by you, man. I’ve understand your stuff earlier than and you are just extremely wonderful. I actually like what you might have acquired here, really like what you are stating and how in places you say it. You make it entertaining and you also still attend to and keep it wise. I can’t wait to see far more from you. This is actually a wonderful site.
Wow, What a amazing post! This is great information!
thank you so much!!
Hey There. I found your blog using msn. This is a really well written article. I’ll make sure to bookmark it and come back to read more of Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish . Thanks for the post. I’ll certainly comeback.
It’s amazing in support of me to have a web page, which is helpful for my knowledge. thanks admin
This site doesn’t show up correctly on my droid – you might want to try and repair that
I’m really loving the theme/design of your weblog. Do you ever run into any browser compatibility problems? A few of my blog readers have complained about my website not operating correctly in Explorer but looks great in Firefox. Do you have any solutions to help fix this problem?
I think this is one of the most vital info for me. and i am glad reading your article. But wanna remark on some general things, The web site style is wonderful, the articles is really nice
. Good job, cheers
Hello, There’s no doubt that your web site might be having web browser compatibility problems. When I take a look at your blog in Safari, it looks fine however, if opening in I.E., it has some overlapping issues. I merely wanted to provide you with a quick heads up! Apart from that, wonderful website!
I truly enjoy studying on this website, it holds fantastic articles. “Beware lest in your anxiety to avoid war you obtain a master.” by Demosthenes.
#up: Don’t sure if you’re right man.
I am not sure where you are getting your information, but good topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this info for my mission.
Your blog does not display appropriately on my droid you may want to try and fix that
#up: I’m not sure if you’re right man.
Does your site have a contact page? I’m having problems locating it but, I’d like to shoot you an email. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it grow over time.
Interesting, we want more.
Yay google is my king assisted me to find this outstanding internet site ! .
Extremely useful info, specifically the last part.
Good post. I learn one thing more challenging on different blogs everyday. It should at all times be stimulating to learn content material from different writers and practice slightly one thing from their store. I’d choose to make use of some with the content material on my weblog whether you don’t mind. Natually I’ll give you a hyperlink in your net blog. Thanks for sharing.
Wow, incredible blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is fantastic, let alone the content!. Thanks For Your article about Bysoft China's Blog > Your Resource To Keep Up With the Web! » Configuration load order in eZ Publish .
Change your thoughts set, there tend to be some terrible music available (particularly modern core). But at the same time there is actually REAL music available, food to the soul
I admire the valuable info you present inside your posts. I’ll bookmark your website for sure. maintain it up!!
Amazing layout I think.
A very helpfull website Thank you very much I wish you will not mind me emailing about this post on my site I’m going to link back Thank you
Thanks for your publication. One other thing is always that individual states in the United states of america have their particular laws in which affect home owners, which makes it quite difficult for the Congress to come up with a brand new set of guidelines concerning property foreclosures on home owners. The problem is that a state possesses own regulations which may work in a damaging manner in relation to foreclosure insurance policies.
Seems that I have to come back more often. I like the kind of style with wich you are writing the posts. Really interesting.