override and multiple access

Author Message

Anthony BESSEAU

Friday 24 August 2007 2:49:02 am

hello all,

I am newb' in ezp.

I searched on this forum for an answer but no way.

My question is simple :

I have to display different informations when url is different :
by example :
on htttp://toto.example.fr : node 1 is displayed, node 2 not.
on htttp://titi.example.fr : node 2 is displayed, node 1 not.

the site access toto contains all my override settings.
the site access titi contains only 1 node to display more than toto.

With site access, the only solution is to copy override.ini.append.php from toto to titi.

the problem :
if i want update override.ini.append.php in toto, i have to update every override.ini.append.php in every siteaccess.

is there a solution in parameters to use the override.ini.append.php from toto to titi without copy of this file.

thanks a lot for your answers, Anthony.

Bruce Morrison

Friday 24 August 2007 4:42:50 am

Hi Antony

I think what you want to do is to create an extension, put the override.ini.append.php in the settings directory of the extension and enable the extenion in both siteaccesses.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Anthony BESSEAU

Friday 24 August 2007 5:43:16 am

Hi Bruce,

thanks for your reply and your solution.

Your solution is ok, it works fine !!!

For more infos : in every site access, we have to use :

[ExtensionSettings]
ActiveAccessExtensions[]=toto

an not ActiveExtensions[] (that was my first mistake ;) )

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 19 2025 10:34:15
Script start
Timing: Jan 19 2025 10:34:15
Module start 'layout'
Timing: Jan 19 2025 10:34:15
Module start 'content'
Timing: Jan 19 2025 10:34:16
Module end 'content'
Timing: Jan 19 2025 10:34:16
Script end

Main resources:

Total runtime0.7463 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.1563152.6250
Module start 'layout' 0.00740.0034 741.781339.4453
Module start 'content' 0.01080.7342 781.2266535.3594
Module end 'content' 0.74490.0013 1,316.585912.1641
Script end 0.7463  1,328.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4347160.0002
Check MTime0.00130.1689160.0001
Mysql Total
Database connection0.00110.141410.0011
Mysqli_queries0.692292.7584570.0121
Looping result0.00070.0924550.0000
Template Total0.712695.520.3563
Template load0.00200.268920.0010
Template processing0.710695.213720.3553
Template load and register function0.00020.030810.0002
states
state_id_array0.00090.122510.0009
state_identifier_array0.00100.131520.0005
Override
Cache load0.00170.2237320.0001
Sytem overhead
Fetch class attribute can translate value0.00080.106220.0004
Fetch class attribute name0.00160.215840.0004
XML
Image XML parsing0.00060.081120.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00160.2118160.0001
String conversion0.00000.001240.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs