Forums / General / multiple sites: pagelayout.tpl and site.css strange behaviour

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.

eZ debug

Timing: Jan 31 2025 04:33:23
Script start
Timing: Jan 31 2025 04:33:23
Module start 'content'
Timing: Jan 31 2025 04:33:23
Module end 'content'
Timing: Jan 31 2025 04:33:23
Script end

Main resources:

Total runtime0.1337 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1797180.8047
Module start 'content' 0.00490.0042 768.984497.9453
Module end 'content' 0.00910.1245 866.9297533.4219
Script end 0.1336  1,400.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.6922200.0002
Check MTime0.00151.0846200.0001
Mysql Total
Database connection0.00060.460610.0006
Mysqli_queries0.090867.86841410.0006
Looping result0.00120.86661390.0000
Template Total0.123992.710.1239
Template load0.00100.776210.0010
Template processing0.122991.895610.1229
Override
Cache load0.00080.599710.0008
Sytem overhead
Fetch class attribute can translate value0.00050.364910.0005
XML
Image XML parsing0.00020.180210.0002
General
dbfile0.00745.5404200.0004
String conversion0.00000.002930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs