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.

eZ debug

Timing: Jan 18 2025 22:17:15
Script start
Timing: Jan 18 2025 22:17:15
Module start 'layout'
Timing: Jan 18 2025 22:17:15
Module start 'content'
Timing: Jan 18 2025 22:17:16
Module end 'content'
Timing: Jan 18 2025 22:17:16
Script end

Main resources:

Total runtime0.7244 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.0047 589.2969152.6563
Module start 'layout' 0.00470.0027 741.953139.5078
Module start 'content' 0.00740.7157 781.4609531.2109
Module end 'content' 0.72300.0013 1,312.671912.0938
Script end 0.7244  1,324.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4225160.0002
Check MTime0.00120.1701160.0001
Mysql Total
Database connection0.00060.079010.0006
Mysqli_queries0.663491.5753570.0116
Looping result0.00050.0729550.0000
Template Total0.693795.820.3469
Template load0.00200.274920.0010
Template processing0.691795.488920.3459
Template load and register function0.00010.018410.0001
states
state_id_array0.00170.236710.0017
state_identifier_array0.00100.134320.0005
Override
Cache load0.00180.2535890.0000
Sytem overhead
Fetch class attribute can translate value0.00140.193120.0007
Fetch class attribute name0.00140.190640.0003
XML
Image XML parsing0.00060.087720.0003
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00150.2047160.0001
String conversion0.00000.001040.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
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
15content/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: 39
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs