Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
None
-
4.0.0
-
None
Description
For ez projects we put all design and siteaccess which are built on one dB in one extension (siteaccess + design) with name site_(projectname).
Normaly we have at least to siteaccesses in one extension ( admin, user) and sometimes more dependent on different languages.
Because we run several sie_extensions on one ez installation we could not use global override ini settings to set inis which used for alle siteaccesses.
We need a solution that only override extension siteaccesses ini settings of the active site_extension.
So if you enable site_test in the global site.ini.append.php all extension siteacces of site_test are available. If for example the siteaccess 'test_user' is matching the ini override for extension siteaccesses should be used, too.
(1) extension/site_test/settings/siteaccess/ test_user/ *.ini.append.php (2) extension/site_test/settings/siteaccess/ *.ini.append.php
(2) overrides the extension siteaccess settings (1)
Here an overview of the new matching order:
ezroot + extension + site_test + settings + siteaccess + test_user (access1) - site.ini.append.php (1) + test_admin (access2) - site.ini.append.php (1) - site.ini.append.php (2) - site.ini.append.php (3) + settings + override - site.ini.append.php (4)
The biggest number overrides the others
(0) here will be ini settings of extension, which are activate in extension siteaccess (0)
(1) ezroot/extension/site_extension/settings/siteaccess/ test_user / site.ini.append.php (1)
(2) ezroot/extension/site_extension/settings/siteaccess/ site.ini.append.php (2)
(3) ezroot/extension/site_extension/settings/ site.ini.append.php (3)
(4) ezroot/settings/override/ site.ini.append.php (4)
</code>
The patch is pretty easy
Only one line in ezroot/lib/ezutils/classes/ezextension.php
ezini.php i updated with a new name for the new setting
"ext-siteaccess" (1) extension/site_test/settings/siteaccess/ test_user/ *.ini.append.php
"ext-siteaccess-override" -> (2) extension/site_test/settings/siteaccess/ *.ini.append.php
It would be great to have this in feature releases of ez.