Forums / Extensions / eZ Flow / zone.ini override

zone.ini override

Author Message

Theodoros Papageorgiou

Tuesday 25 January 2011 5:02:57 am

Hi,

How can I override the default zone.ini in /extension/ezflow/settings/

I've tried to place it in /extension/ezflow/settings/siteaccess/my_siteaccess/ but the default is always loaded.

Thanks

WEBWiZ
Web Development
http://www.webwiz.gr

Franck Magnan

Tuesday 25 January 2011 5:39:35 am

Hello Theodoros,

if you need to override configuration file from an extension, you must place your zone.ini.append.php in settings/override folder.

--
Developer at Open Wide

Theodoros Papageorgiou

Tuesday 25 January 2011 8:50:00 am

Thanks for your answer Franck,

It works by placing it in the settings/override folder.
However, I'm working on a multisite installation and I'd like to override it for each siteaccess independently.

Any ideas?

WEBWiZ
Web Development
http://www.webwiz.gr

Franck Magnan

Tuesday 25 January 2011 11:34:05 am

You cannot override each siteaccess independently.

Order of overrides is:
override > extension > siteaccess
So, since zone.ini is in an extension, you cannot override it in siteaccess nor extension, you can just override it by the settings/override folder. I've got the same problem with ezjscore.ini. I wanted to have different javascript library in frontend and backend siteaccesses.
It is not possible in standard way but a hack exists.
Do you know which instruction you need to override?
You can delete this instruction in /extension/ezflow/settings/zone.ini and add it in:

  • /extension/ezflow/settings/siteaccess/my_siteaccess1/zone.ini.append.php
  • /extension/ezflow/settings/siteaccess/my_siteaccess2/zone.ini.append.php
  • /extension/ezflow/settings/siteaccess/my_siteaccess3/zone.ini.append.php

with different values.
It works but be careful, you will not upgrade ezflow easily after that.

--
Developer at Open Wide

Gaetano Giunta

Wednesday 26 January 2011 2:02:24 am

"

[...]

So, since zone.ini is in an extension, you cannot override it in siteaccess nor extension, you can just override it by the settings/override folder. [...]

"

This is not exactly true.

If you are careful about loading order of your extensions, settings in one extension can take precedence over settings from another one.

Support for this has improved in 4.4, since now extensions can declare their dependencies and have the correct loading order automatically calculated

Principal Consultant International Business
Member of the Community Project Board

Theodoros Papageorgiou

Wednesday 26 January 2011 3:57:14 am

Thanks Gaetano,

It worked after placing the override file in extension/my_extension/settings/zone.ini.append.php

The ini override order is the following as copied from Nicolas Pastorino's post in this thread:

  1. settings/*.ini
  2. extension/<extension_name>/settings/siteaccess/<siteaccess_name>/*.ini.append.php
  3. settings/siteaccess/<siteaccess_name>/*.ini.append.php
  4. extension/<extension_name>/settings/*.ini.append.php
  5. settings/override/*.ini.append.php

WEBWiZ
Web Development
http://www.webwiz.gr

Franck Magnan

Wednesday 26 January 2011 4:51:44 am

Hello Gaetano,
thanks for your precision. I'm developping an extension which works only with jquery et I tried to set PreferredLibrary to "jquery" in extension/<my_extension>/settings/ezjscore.ini.append.php but javascript main library remains "yui3".
I'm going to try again in 4.4 with an xml dependency file to see what happens.

--
Developer at Open Wide

eZ debug

Timing: Jan 18 2025 04:32:13
Script start
Timing: Jan 18 2025 04:32:13
Module start 'content'
Timing: Jan 18 2025 04:32:13
Module end 'content'
Timing: Jan 18 2025 04:32:13
Script end

Main resources:

Total runtime0.2440 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.0115 588.8516180.7969
Module start 'content' 0.01150.0065 769.6484103.7422
Module end 'content' 0.01800.2260 873.3906531.6563
Script end 0.2440  1,405.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.6246200.0002
Check MTime0.00150.6153200.0001
Mysql Total
Database connection0.00110.461810.0011
Mysqli_queries0.193179.15101410.0014
Looping result0.00160.67521390.0000
Template Total0.225592.410.2255
Template load0.00110.435710.0011
Template processing0.224491.974310.2244
Override
Cache load0.00070.291710.0007
Sytem overhead
Fetch class attribute can translate value0.00230.949510.0023
XML
Image XML parsing0.00040.179510.0004
General
dbfile0.00180.7325200.0001
String conversion0.00000.003030.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.0001 secs