Forums / Developer / Settings override order

Settings override order

Author Message

Bertrand Dunogier

Wednesday 13 July 2005 2:40:06 am

I'm setting up a multilingual site with ezp, and either I don't understand something, either something doesn't make sense.

The current settings override order:
- settings/x.ini
- settings/siteaccess/y/x.ini.append
- settings/override/x.ini.append

doesn't sound logical to me. Initially, I thought it would have been global => global override => siteaccess.

That way for instance, you can setup all the common stuff in global overrides, then finetunes for each siteaccess in the respective ini files.

In my multilanguage website example, I could have done:

override/site.ini.append:

[SiteSettings]
LoginPage=embedded

then in siteaccess/foo/site.ini.append
[SiteSettings]
SiteName=...
SiteURL=...

And so on.

Now I have to totally replicate the siteaccess folder and edit all files everytime. I'm not even sure how i'm gonna handle my overrides, actually :)

<b>suggestion:</b>
I was thinking about an additionnal setting like AdditionnalSiteSettingsList which would let you specify an override folder where settings would be loaded for that siteaccess.

Thoughts ? And maybe suggestions if I'm doing something wrong... :)

Thanks !

David Eriksson

Wednesday 13 July 2005 3:46:12 am

Well, as the name suggest, override settings override other settings. Which would explain it being placed last in the list.

How I have solved sharing common settings, is simply to put all global settings in override/.ini, and then place site-specific settings in the siteaccess folder. That way you shouldn't have to replicate anything.

That said, I can understand what you mean, and it would be nice. The only way I can think of to do that right now, is to place your "default" values in settings/site.ini, and place more specialized values in the settings/siteaccess/ folders, leaving override/site.ini.append empty regarding these values. But modifying the "original" site.ini isn't a good solution in my eyes, so...

/David

Bertrand Dunogier

Wednesday 13 July 2005 4:32:13 am

Yeah, I'm doing something similar.

But what I feel is missing is an additionnal level of override. When you have 2 siteaccess, a user one and an admin one, the current system is perfect.

But when you have several user siteaccess, you can not use the global override for everything... for instance RequireUserLogin, SiteDesign, etc. They will be similar for every user siteaccess, but different for the admin one, so you can't use the global override files for those.

eZ debug

Timing: Jan 20 2025 06:49:45
Script start
Timing: Jan 20 2025 06:49:45
Module start 'content'
Timing: Jan 20 2025 06:49:45
Module end 'content'
Timing: Jan 20 2025 06:49:45
Script end

Main resources:

Total runtime0.1739 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 590.0625180.8438
Module start 'content' 0.00740.0058 770.906393.8672
Module end 'content' 0.01320.1606 864.7734523.7500
Script end 0.1738  1,388.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.2179200.0002
Check MTime0.00140.7870200.0001
Mysql Total
Database connection0.00150.884910.0015
Mysqli_queries0.122670.51031410.0009
Looping result0.00140.82691390.0000
Template Total0.160392.210.1603
Template load0.00080.432910.0008
Template processing0.159591.718710.1595
Override
Cache load0.00050.309910.0005
Sytem overhead
Fetch class attribute can translate value0.00080.435210.0008
XML
Image XML parsing0.00030.150710.0003
General
dbfile0.00170.9747200.0001
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs