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