I'm going crazy with SiteDesign and SiteAccess

Author Message

Adolfo Barragán

Monday 08 September 2003 3:31:00 am

I want create a new site access for my site, and I want a new design for this siteaccess (call us 'master'), so I created settings/siteaccess/master and design/master/*.

In site.ini.append.php I add AvailableSiteAccessList[]=master and SiteAccessList[]=master

In content.ini and settings/siteaccess/master/content.ini.append I added
[VersionView]
AvailableSiteDesigns=standard;user;admin;master

In settings/siteaccess/master/site.ini.append I have:
[SiteSettings]
DefaultPage=/content/view/full/46
IndexPage=/content/view/full/46

But I allways receive /content/view/full/2 (the root folder) when I expected content/view/full/46.

Please, see also my previous message http://ez.no/developer/ez_publish_3/forum/setup_design/how_overriding_templates because I can't achive override templates work properly.

Thanks in advance

Bjørn Kaarstein

Monday 08 September 2003 4:50:15 am

You will have to make sure that you don't have the

[SiteSettings]
DefaultPage=/content/view/full/46
IndexPage=/content/view/full/46

in your site,ini.append.php in your override directory, because that file will override your site.ini.append for your siteaccess.

Also if you're running matchorder=host, try this setting in site.ini.append.php.

[SiteAccessSettings]
MatchOrder=host
HostMatchMapItems[]=www.yoursite.com;master

Regards Bjørn

Martin Ulrich

Monday 08 September 2003 4:57:57 am

have you create a new override pagelayout_master.tpl ?
and modify override.ini.append

rs. change the fix parent_node_id in the pagelayout_xxx.tpl ?

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Adolfo Barragán

Monday 08 September 2003 5:14:03 am

In /settings/override/site.ini.append.php:
IndexPage=/content/view/full/2/
DefaultPage=/content/view/full/2/
DefaultAccess=user
This is Ok, because I want users go to root folder

In /setings/siteaccess/master/site.ini.append
DefaultPage=/content/view/full/46
IndexPage=/content/view/full/46
And this not work, I allways see node 2 (root).

>Also if you're running matchorder=host, try this setting
> in site.ini.append.php.
No I'm using index match type for site access (non virtual host)

> Regards Bjørn
Thanks, Adolfo

Adolfo Barragán

Monday 08 September 2003 5:29:24 am

>in your site,ini.append.php in your override directory,
>because that file will override your site.ini.append for
>your siteaccess.

Yes, that is the the crux of the matter.

I deleted the entries for IndexPage and DefaultAccessPage from /settings/override/site.ini.append.php and I put specific entries for IndexPage and DefaultAccessPage on /settings/siteaccess/<access>/site.ini.append and then it works Ok.

I assumed that override order (or settings apply order) are:
1. /settings/site.ini
2. /settings/override/site.ini.append.php (override '1')
3. /settings/siteaccess/<access>/site.ini.append (override '2')

But the correct order are:
A. /settings/site.ini
B. /settings/siteaccess/<access>/site.ini.append (override 'A')
C. /settings/override/site.ini.append.php (overrido 'B')

That is Ok?

Regards, Adolfo

Bjørn Kaarstein

Monday 08 September 2003 5:51:15 am

This seems right.

>But the correct order are:
>A. /settings/site.ini

This is the settings used if you don't use any overrides at all.

>B. /settings/siteaccess/<access>/site.ini.append (override 'A')

This is the override based on siteaccess, so that you can have different settings for different siteaccesses (i.e. user and editor)

>C. /settings/override/site.ini.append.php (overrido 'B')

This will override both site.ini and site.ini.append within your siteaccesses.

Hope this has been of some help.

Regards Bjørn

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 22:11:39
Script start
Timing: Jan 18 2025 22:11:39
Module start 'layout'
Timing: Jan 18 2025 22:11:39
Module start 'content'
Timing: Jan 18 2025 22:11:41
Module end 'content'
Timing: Jan 18 2025 22:11:41
Script end

Main resources:

Total runtime1.3244 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1641152.6406
Module start 'layout' 0.00530.0026 741.804739.4922
Module start 'content' 0.00801.3150 781.2969580.2031
Module end 'content' 1.32290.0014 1,361.500016.1250
Script end 1.3244  1,377.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2489160.0002
Check MTime0.00160.1193160.0001
Mysql Total
Database connection0.00090.069810.0009
Mysqli_queries1.256094.8371680.0185
Looping result0.00060.0485660.0000
Template Total1.290297.420.6451
Template load0.00200.152620.0010
Template processing1.288197.261920.6441
Template load and register function0.00020.015610.0002
states
state_id_array0.00140.104810.0014
state_identifier_array0.00190.140120.0009
Override
Cache load0.00190.1424720.0000
Sytem overhead
Fetch class attribute can translate value0.00060.045530.0002
Fetch class attribute name0.00130.095860.0002
XML
Image XML parsing0.00040.029230.0001
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00200.1488100.0002
String conversion0.00000.000540.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs