multiple sites: pagelayout.tpl and site.css strange behaviour

Author Message

Baur Aibek

Wednesday 25 February 2004 11:23:59 pm

I'm trying to make three sites with single EzPublish installation on FreeBSD-Apache-Postgres

when i put different pagelayout.tpl files into design/templates of each site i've got a strange result:
- 1-st site (test) is ok, 2-nd site (pens) is ok, but the third one (baur) takes pagelayout.tpl from the 2-nd (pens). the same problem with css files. instead of baur.css baur site displays pens.css

as beeing new to Ez i had removed all installations and done it again, not copying ini and append files but thorougly made them manually. put differnt pagelayout.tpl in corresponding desing/site_name/templates.
the result is again the same. third site takes layout from the second one.

it is very unexpected behaviour, and due to lack of understanding of teplate architecture i feel better to ask gurus.

for ur referece below is my config in short

site names: test, pens, baur
have three databases: test, pens, baur

added tree catalogs in each of settings and design.

settings:
all ini files unchanged.

override/site.ini.append
[SiteSettings]
SiteList[]=test
SiteList[]=pens
SiteList[]=baur

[SiteAccessSettings]
# A list over current active siteaccesses
AvailableSiteAccessList[]=test
AvailableSiteAccessList[]=test_admin
AvailableSiteAccessList[]=pens
AvailableSiteAccessList[]=pens_admin
AvailableSiteAccessList[]=baur
AvailableSiteAccessList[]=baur_admin

[DesignSettings]
AdditionalSiteDesignList[]=test
AdditionalSiteDesignList[]=pens
AdditionalSiteDesignList[]=baur

override/content.ini.append
[VersionView]
# OBSOLETE: Use AvailableSiteDesignList instead
# Specify all available site designs
# AvailableSiteDesigns=standard;user;admin;demo
# A list of designs the site can use
#AvailableSiteDesignList[]
AvailableSiteDesignList[]=test
AvailableSiteDesignList[]=baur
AvailableSiteDesignList[]=pens

siteaccess/test/site.ini.append
[DatabaseSettings]
DatabasePluginPath=
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezpostgresql
Server=212.154.208.15
User=admin
Password=admin
Database=test
ConnectRetries=0
Charset=koi8-r

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

SiteName=Test
[DesignSettings]
SiteDesign=test
[FileSettings]
VarDir=var/test

[TemplateSettings]
TemplateCache=disabled
Debug=disabled
[ContentSettings]
ViewCaching=disabled
[DebugSettings]
DebugOutput=enabled

[SiteAccessSettings]
RequireUserLogin=false

siteaccess/pens/site.ini.append and siteaccess/baur/site.ini.append are done as above except test is replaced with pens or baur

James Packham

Thursday 26 February 2004 2:45:31 am

>> problem with css files. instead of baur.css baur site displays pens.css

It's only doing this because the template is telling it load the wrong stylesheets, we need to get it using the right design directory before we can call the correct stylesheets for each siteaccess ;)

>> [DesignSettings]
>> AdditionalSiteDesignList[]=test
>> AdditionalSiteDesignList[]=pens
>> AdditionalSiteDesignList[]=baur

Doesn't need to be there, or in settings/override/site.ini.append.php

Make sure each settings/siteaccess/------/site.ini.append has

[DesignSettings]
SiteDesign=[design dir name for your siteaccess]

inside. Don't forget to clear caches.

Regards,

James

Baur Aibek

Thursday 26 February 2004 3:26:14 am

COOL !!!

i've got the point. many thanks man.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.