Kind of "public_override" and "admin_override"

Author Message

Nicolas Steinmetz

Tuesday 07 September 2010 1:18:26 am

For the context : In one single instance of eZ Publish (in fact there are four for technical, legal and timezone reasons), we host around 25 town websites (with 1 main siteaccess + 1 admin + 0 to n for translations if any).

So far, settings are versionned in SVN and I have 3 structures (one for each environement : UAT / Preprod / Prod). So nothing new here I guess for most of you :-)

My issue is that, for each new release, I have to update settings for each town. I use the /settings/override/* sometimes but I can't use it always as we may have some conflicts between frontend/backend siteaccess.

So I was thinking about a kind of "public_override" and "admin_override".

What do you think about ?

Matthieu Sévère

Tuesday 07 September 2010 1:36:45 am

This kind of override would be very nice, there is discussion on this on the issue tracker but I can't find back the issue, if someone remenber...

Currently for this problem I use the ActiveAccessExtension settings which allows you to load an extension for a specific site access. Thus, I can load one extension for front end siteaccess and another one for backend extension and I put my override and front end settings there.

Cheers

--
eZ certified developer: http://ez.no/certification/verify/346216

Nicolas Steinmetz

Tuesday 07 September 2010 1:51:37 am

Thanks Matthieu for your reply,

If I understand well, for a given town :

On my main public siteaccess :

  • I load the generic "frontend" extension which contains generic settings
  • In my siteaccess, I can override the generic settings from my "frontend" extension

On my secondary siteaccess (for translation purpose) :

  • I load the generic "frontend" extension which contains generic settings
  • In my siteaccess, I can override the generic settings from my "frontend" extension

On my admin siteaccess :

  • I load the generic "backend" extension which contains generic settings
  • In my siteaccess, I can override the generic settings from my "backend" extension

So if I undertand well, it leads to something like settings/override/* > settings/siteaccess/<town>/* > extension/<my extension>/settings/* ?

It reminds me that sometimes there were troubles with settings within extensions. Is it now safe/solved (we use 4.0.6 so far, should use 4.3 by the end of the year).

Matthieu Sévère

Tuesday 07 September 2010 2:07:32 am

Yes, but be carefull with loading order and override of ini file you should have a look at this issue : http://issues.ez.no/13382

--
eZ certified developer: http://ez.no/certification/verify/346216

André R.

Tuesday 07 September 2010 3:03:13 am

With ActiveAccessExtension this should work in all versions, it's been cleanedup slightly in 4.4 but the basics are the same, the order is:

settings/
ActiveAccessExtension
siteaccess
ActiveExtension
settings/override/

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Matthieu Sévère

Tuesday 07 September 2010 4:26:33 am

"

With ActiveAccessExtension this should work in all versions, it's been cleanedup slightly in 4.4 but the basics are the same, the order is:

settings/
ActiveAccessExtension
siteaccess
ActiveExtension
settings/override/

"

By the way, what has been done in 4.4 around ini : use of eZ Components for ini management ?

Is there any plan to change loading order in futur release ?

Thanks for your heads up André

--
eZ certified developer: http://ez.no/certification/verify/346216

Nicolas Steinmetz

Wednesday 08 September 2010 1:40:01 am

Solved on a theorical point of view - Let's now see how to implement it for real in my context.

Jean Voye

Wednesday 08 September 2010 1:44:34 am

"

Solved on a theorical point of view - Let's now see how to implement it for real in my context.

"

Let us know how this goes Nicolas.

Cheers !

--
Nicolas

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 02:18:27
Script start
Timing: Jan 18 2025 02:18:27
Module start 'layout'
Timing: Jan 18 2025 02:18:27
Module start 'content'
Timing: Jan 18 2025 02:18:28
Module end 'content'
Timing: Jan 18 2025 02:18:28
Script end

Main resources:

Total runtime0.7592 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.4609153.4766
Module start 'layout' 0.00540.0023 742.937539.4219
Module start 'content' 0.00770.7503 782.3594704.6016
Module end 'content' 0.75800.0011 1,486.960920.1250
Script end 0.7591  1,507.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3876160.0002
Check MTime0.00130.1702160.0001
Mysql Total
Database connection0.00090.121210.0009
Mysqli_queries0.685890.3352770.0089
Looping result0.00060.0806750.0000
Template Total0.734996.820.3674
Template load0.00220.292720.0011
Template processing0.732696.503820.3663
Template load and register function0.00010.013310.0001
states
state_id_array0.00070.096010.0007
state_identifier_array0.00070.088220.0003
Override
Cache load0.00210.2739650.0000
Sytem overhead
Fetch class attribute can translate value0.00060.076640.0001
Fetch class attribute name0.00120.1635120.0001
XML
Image XML parsing0.00290.376940.0007
class_abstraction
Instantiating content class attribute0.00000.0047160.0000
General
dbfile0.00210.2742340.0001
String conversion0.00000.000840.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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
3content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs