Forums / Extensions / eZ Flow / zone.ini override
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
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?
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:
with different values.It works but be careful, you will not upgrade ezflow easily after that.
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
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:
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.