Forums / Setup & design / I'm going crazy with SiteDesign and SiteAccess

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

eZ debug

Timing: Jan 18 2025 19:24:41
Script start
Timing: Jan 18 2025 19:24:41
Module start 'content'
Timing: Jan 18 2025 19:24:41
Module end 'content'
Timing: Jan 18 2025 19:24:42
Script end

Main resources:

Total runtime0.7736 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.9766180.8125
Module start 'content' 0.00650.5963 769.7891585.2969
Module end 'content' 0.60280.1707 1,355.0859337.7813
Script end 0.7734  1,692.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5255210.0002
Check MTime0.00140.1827210.0001
Mysql Total
Database connection0.00090.114110.0009
Mysqli_queries0.682488.20882050.0033
Looping result0.00220.28812030.0000
Template Total0.745396.320.3726
Template load0.00200.264220.0010
Template processing0.743296.079120.3716
Template load and register function0.00020.025910.0002
states
state_id_array0.00090.122810.0009
state_identifier_array0.00100.131220.0005
Override
Cache load0.00190.2425720.0000
Sytem overhead
Fetch class attribute can translate value0.00240.305340.0006
Fetch class attribute name0.00160.204860.0003
XML
Image XML parsing0.00060.083740.0002
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00340.4449210.0002
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs