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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 00:59:41
Script start
Timing: Jan 18 2025 00:59:41
Module start 'layout'
Timing: Jan 18 2025 00:59:41
Module start 'content'
Timing: Jan 18 2025 00:59:41
Module end 'content'
Timing: Jan 18 2025 00:59:41
Script end

Main resources:

Total runtime0.4093 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.0547152.6250
Module start 'layout' 0.00710.0033 741.679739.4531
Module start 'content' 0.01030.3969 781.1328647.7344
Module end 'content' 0.40730.0020 1,428.867220.1641
Script end 0.4092  1,449.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.8384160.0002
Check MTime0.00130.3259160.0001
Mysql Total
Database connection0.00110.270710.0011
Mysqli_queries0.324279.2042740.0044
Looping result0.00090.2132720.0000
Template Total0.371590.820.1857
Template load0.00180.443720.0009
Template processing0.369790.311220.1848
Template load and register function0.00020.046410.0002
states
state_id_array0.00150.356010.0015
state_identifier_array0.00160.379020.0008
Override
Cache load0.00160.3911580.0000
Sytem overhead
Fetch class attribute can translate value0.00080.189830.0003
Fetch class attribute name0.00150.3743100.0002
XML
Image XML parsing0.00180.434630.0006
class_abstraction
Instantiating content class attribute0.00000.0093140.0000
General
dbfile0.00190.4623260.0001
String conversion0.00000.002340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ol.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ol.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs