Sharing settings between "twinned" siteaccesses

Author Message

Luigi Spagnolo

Wednesday 22 July 2009 3:58:43 am

A recommended practice for implementing multi-language sites with ezPublish is using several public siteaccesses.
The problem is that in many cases, multiple multi-language sites must be supported by the same eZPublish installation, each one with its own design.
This mean that, if I support two languages for each site, I will have a pair of siteaccesses for each site, e.g. in my case:
- ita and eng for the main front-end
- json_ita and json_eng for creating JSON feeds of nodes
- mobile_ita and mobile_eng for a mobile version of the website.

Obviously ita and eng share the same design, while json_ita and json_eng share another design, and the same for mobile_ita and mobile_eng.
The problem is thay I cannot figure out a way to make those pairs of siteaccesses share the same settings, e.g. the same override.ini, simplifying their maintenance.

So, I ask you: is there a way to achieve this,i.e. making siteaccesses that differ only for the language share at least part of the settings?

Heath

Wednesday 22 July 2009 4:16:23 am

Hello,

Here are some extensions which relate to this topic.

http://projects.ez.no/mirror_ini
http://projects.ez.no/noveniniupdate

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Peter Keung

Thursday 23 July 2009 9:39:48 am

You could also create "settings" extensions, that contain nothing but settings. Then activate the same extension in whatever siteaccesses you want to share those settings. Of course, be mindful of the order of the loading of INI files:

Default
Extensions enabled for that siteaccess
Siteaccess
Extensions enabled globally
Override

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

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 16:20:08
Script start
Timing: Jan 18 2025 16:20:08
Module start 'layout'
Timing: Jan 18 2025 16:20:08
Module start 'content'
Timing: Jan 18 2025 16:20:09
Module end 'content'
Timing: Jan 18 2025 16:20:09
Script end

Main resources:

Total runtime1.0379 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1641152.6406
Module start 'layout' 0.00480.0027 741.804739.4766
Module start 'content' 0.00741.0290 781.2813593.6641
Module end 'content' 1.03650.0014 1,374.945312.1250
Script end 1.0378  1,387.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.2630160.0002
Check MTime0.00110.1067160.0001
Mysql Total
Database connection0.00080.077710.0008
Mysqli_queries0.985994.9883590.0167
Looping result0.00080.0778570.0000
Template Total1.009797.320.5049
Template load0.00220.214220.0011
Template processing1.007597.071320.5037
Template load and register function0.00010.011710.0001
states
state_id_array0.00080.077510.0008
state_identifier_array0.00100.096420.0005
Override
Cache load0.00180.1776290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.066130.0002
Fetch class attribute name0.00130.125360.0002
XML
Image XML parsing0.00150.144830.0005
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00090.0896300.0000
String conversion0.00000.000740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs