Bysoft China's Blog > Your e-commerce partner

Share Our Knowledge, Share Our Passion
  • rss
  • Home
  • About Us
  • SERVICES
  • WORKS
  • START ECOMMERCE WEBSITE
  • START CMS WEBSITE
  • CONTACT US

Configuration load order in eZ Publish

Jerry Wang | January 25, 2011

Firstly, 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.

Categories
Content Management (CMS)
Tags
bysoft, Bysoftchina, CMS, easy publish, ez, eZ publish, PHP
Comments rss
Comments rss
Trackback
Trackback

« Bysoft certified engineers Ecommerce in China »

69 Responses to “Configuration load order in eZ Publish”

  1. resimleri says:
    February 25, 2011 at 04:30

    Thank you for this tut, nice use of the google tools!

  2. hawaii condos says:
    June 27, 2011 at 21:25

    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,

  3. winery for sale says:
    July 9, 2011 at 22:04

    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!

  4. Ebook Store says:
    July 14, 2011 at 19:58

    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!

  5. polo shirts says:
    July 15, 2011 at 18:20

    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!

  6. 654sitesroulette says:
    July 19, 2011 at 08:12

    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!

  7. bestroulette00 says:
    July 20, 2011 at 05:51

    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!

  8. Rosendo Jeschke says:
    July 20, 2011 at 15:08

    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.

  9. 321blackjackguide says:
    July 21, 2011 at 10:35

    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!

  10. Custom T shirts says:
    August 5, 2011 at 22:22

    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.

  11. earn-money-online says:
    November 5, 2011 at 02:29

    I see a lot of good content in blogen.bysoftchina.com !
    earn money online

  12. emma grant says:
    November 6, 2011 at 12:26

    Ok, I’m going back to my movie! Miss you all! XOXOX

  13. Last Longer In Bed says:
    November 12, 2011 at 07:39

    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!

  14. Beryl says:
    November 17, 2011 at 11:43

    I consider something truly special in this site.

  15. rugs says:
    November 17, 2011 at 13:38

    very good post, i certainly love this website, keep on it

  16. Filmy z lektorem says:
    March 2, 2012 at 17:16

    I was studying some of your posts on this website and I believe this site is very informative! Keep on posting.

  17. Luci Moberley says:
    March 2, 2012 at 19:29

    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…

  18. invest liberty reserve says:
    March 2, 2012 at 19:41

    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

  19. Storm Shelters says:
    March 2, 2012 at 21:24

    Great article! I think we will continue to see such as time and the economy progress.

  20. donate car says:
    March 3, 2012 at 01:41

    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.

  21. Matthew C. Kriner says:
    March 3, 2012 at 02:03

    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.

  22. weight loss surgery diet says:
    March 3, 2012 at 13:57

    You should take part in a contest for one of the best blogs on the web. I will recommend this site!

  23. Medycyna says:
    March 3, 2012 at 14:39

    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.

  24. invest liberty reserve says:
    March 3, 2012 at 14:52

    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

  25. Fabian Phinisee says:
    March 3, 2012 at 15:57

    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.

  26. Coralie Risatti says:
    March 3, 2012 at 21:45

    woh I am delighted to find this website through google.

  27. XBOX 360 says:
    March 4, 2012 at 05:17

    Very great layout! How did you get it?

  28. Water Softener says:
    March 4, 2012 at 06:40

    yahoo is so neat, when i am bored i just surf the net and see what i can find to entertain me. good job

  29. Darren Odome says:
    March 4, 2012 at 09:45

    So want to incessantly acquire current wonderful website ! .

  30. Filmy Download says:
    March 4, 2012 at 11:53

    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.

  31. Aquarium Products Crystal Clear 75 Oz Ccc Water Clarifiers says:
    March 4, 2012 at 12:50

    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.

  32. Izzykonto opinie says:
    March 4, 2012 at 19:23

    Very great layout I think.

  33. invest liberty reserve says:
    March 4, 2012 at 21:22

    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 .

  34. Phanna Mey says:
    March 4, 2012 at 21:57

    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.

  35. fruit mocking party says:
    March 5, 2012 at 01:00

    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!

  36. Bola Tangkas says:
    March 5, 2012 at 04:32

    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.

  37. indie folk music says:
    March 5, 2012 at 07:56

    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!

  38. Link Building says:
    March 5, 2012 at 08:48

    I conceive other website proprietors should take this site as an example, very clean and great user genial layout.

  39. Luigi Fulk says:
    March 5, 2012 at 09:34

    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!

  40. do bi xenon says:
    March 5, 2012 at 10:23

    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!

  41. aweber review says:
    March 5, 2012 at 10:35

    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 :D . Good job, cheers

  42. Internet marketing tools says:
    March 5, 2012 at 11:00

    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.

  43. Britta Palmer says:
    March 5, 2012 at 18:37

    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?

  44. invest liberty reserve says:
    March 6, 2012 at 01:04

    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

  45. bleeding hemorrhoids treatment says:
    March 6, 2012 at 06:53

    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.

  46. Josh says:
    March 6, 2012 at 09:48

    Wow, What a amazing post! This is great information!

    thank you so much!!

  47. invest liberty reserve says:
    March 6, 2012 at 15:05

    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.

  48. alton brown weight loss says:
    March 6, 2012 at 16:43

    It’s amazing in support of me to have a web page, which is helpful for my knowledge. thanks admin

  49. murfreesboro roofing says:
    March 6, 2012 at 17:19

    This site doesn’t show up correctly on my droid – you might want to try and repair that

  50. Noriko Jin says:
    March 6, 2012 at 19:59

    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?

  51. daily traffic says:
    March 6, 2012 at 21:38

    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 :D . Good job, cheers

  52. dich vu seo says:
    March 6, 2012 at 23:06

    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!

  53. Whitley Golda says:
    March 7, 2012 at 01:07

    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.

  54. Konto bankowe says:
    March 7, 2012 at 01:42

    #up: Don’t sure if you’re right man.

  55. invest liberty reserve says:
    March 7, 2012 at 02:16

    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.

  56. Eberjey Delirious Chemise says:
    March 7, 2012 at 03:01

    Your blog does not display appropriately on my droid you may want to try and fix that

  57. Izzykonto says:
    March 7, 2012 at 03:59

    #up: I’m not sure if you’re right man.

  58. Dealer mobil honda says:
    March 7, 2012 at 06:22

    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.

  59. georges nguyen says:
    March 7, 2012 at 08:48

    Interesting, we want more.

  60. Black Hat Seo says:
    March 7, 2012 at 09:43

    Yay google is my king assisted me to find this outstanding internet site ! .

  61. Life is good Ride On Good Move Longsleeve Tee Red Card Ride On Apparel says:
    March 7, 2012 at 13:15

    Extremely useful info, specifically the last part.

  62. mercurial 2012 says:
    March 7, 2012 at 15:15

    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.

  63. invest liberty reserve says:
    March 7, 2012 at 19:11

    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 .

  64. spiritual music says:
    March 8, 2012 at 01:23

    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

  65. iphone 4 cassette tapes says:
    March 8, 2012 at 03:40

    I admire the valuable info you present inside your posts. I’ll bookmark your website for sure. maintain it up!!

  66. Darmowe konto bankowe says:
    March 8, 2012 at 04:30

    Amazing layout I think.

  67. Sex Buddy says:
    March 8, 2012 at 06:39

    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

  68. free embroidery designs says:
    March 8, 2012 at 09:17

    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.

  69. Jerry Ledgerwood says:
    March 23, 2012 at 20:05

    Seems that I have to come back more often. I like the kind of style with wich you are writing the posts. Really interesting.

Leave a Reply

Click here to cancel reply.

Recent Posts

  • BBS (Bulletin Board Systems) in China
  • How to buy online in China ? The payment gateway process (end-user perspective)
  • Groupon (Gaopeng) in China and Lashou, its direct competitor
  • Huaban or the Chinese Pinterest
  • Team Member’s interview : Stephanie web project manager
  • The new version 1.12 of Magento Enterprise
  • 2nd China eBusiness Entrepreneurship Conference
  • MD5 is dead : what to use now?
  • The constraints of the Chinese Internet
  • The Chinese Delivery Methods

Categories

  • Content Management (CMS)
  • Ecommerce
  • FAQ Shopmaker – Standard Ecommerce
  • Internet
  • Magento
  • News
  • PHP
  • References
  • Search Engine Marketing (SEM)
  • Search Engine Optimization (SEO)
  • Web Design
  • Web Development
  • Web Technologies
  • Webmarketing

Tags

api asia b2c Baidu business bysoft Bysoftchina c2c china CMS company cpc Design Ecommerce ecommerce navigation education ergonomics eZ publish Google integration interview japan Joomla! lecture Magento open source PHP php engineer ppc press programming sem seo shanghai shopmaker social media symfony tips tutorial web application Webmarketing website cache zend zend framework Zend PHP 5

Recent Comments

  • appeftdormape on Greetings from Bysoft for the Year of the Ox
  • jennera on About Us
  • Boolvehef on The Chinese Delivery Methods
  • New mexico indian beaded bracelets on Bysoft certified engineers
  • Danna on Baidu.com plans to launch an instant messaging service

Pages

  • About Us

Archives

  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • October 2011
  • September 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • June 2009
  • May 2009
  • February 2009
  • January 2009
  • October 2008
  • April 2008
  • March 2008
  • February 2008
  • December 2007
  • November 2007
  • August 2007

Bysoft China

  • Consulting
  • Content Management
  • E-Commerce
  • Graphic Design
  • Magento
  • Marketing Website
  • Programming
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox