Forums / Setup & design / Kind of "public_override" and "admin_override"

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

eZ debug

Timing: Jan 17 2025 23:57:48
Script start
Timing: Jan 17 2025 23:57:48
Module start 'content'
Timing: Jan 17 2025 23:57:50
Module end 'content'
Timing: Jan 17 2025 23:57:50
Script end

Main resources:

Total runtime1.3723 sec
Peak memory usage4,096.0000 KB
Database Queries214

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.9609180.8125
Module start 'content' 0.00691.2154 769.7734709.2891
Module end 'content' 1.22230.1499 1,479.0625344.4609
Script end 1.3722  1,823.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3059210.0002
Check MTime0.00160.1198210.0001
Mysql Total
Database connection0.00090.067610.0009
Mysqli_queries1.266792.31012140.0059
Looping result0.00250.18382120.0000
Template Total1.344097.920.6720
Template load0.00210.155720.0011
Template processing1.341897.782320.6709
Template load and register function0.00070.052310.0007
states
state_id_array0.00070.053110.0007
state_identifier_array0.00120.090520.0006
Override
Cache load0.00200.1461650.0000
Sytem overhead
Fetch class attribute can translate value0.00140.105650.0003
Fetch class attribute name0.00120.0896120.0001
XML
Image XML parsing0.00440.323350.0009
class_abstraction
Instantiating content class attribute0.00010.0043160.0000
General
dbfile0.00950.6950450.0002
String conversion0.00000.000730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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