Mutiple site access - new design's CSS not found

Author Message

cousin mosquito

Sunday 26 April 2009 8:15:23 pm

I have set up a new site access by copying the old folders and renaming them as in this tutorial.
http://ezpedia.org/nl/ez/overriding_the_ez_web_interface_ezwebin_with_custom_designs

I replicated the database and put new paths in the appropriate ini files for the 2nd database.
Now my content uploads correctly and I can access the new site in both admin and browsing mode.

I want a different "look and feel" for each site_access
...but the new site access is only reading the templates and css from the original site's path.

@import url(/ezpublish/extension/ezwebin/design/ezwebin/stylesheets/core.css);
    @import url(/ezpublish/design/standard/stylesheets/debug.css);
    @import url(/ezpublish/extension/ezwebin/design/ezwebin/stylesheets/pagelayout.css);
    @import url(/ezpublish/extension/ezwebin/design/ezwebin/stylesheets/content.css);
    @import url(/ezpublish/extension/ezwebin/design/ezwebin/stylesheets/websitetoolbar.css);

It appears (to me) that the new site_access isnt picking up the new pagelayout.tpl file, because the CSS from the original design is not present when I view source in my browser.

What file do I need to edit, to make my new site_access recognise the CSS of the new design?

Original design:
/usr/local/apache2/htdocs/ezpublish/extension/ezwebin/design/ezwebin
New design:
/usr/local/apache2/htdocs/ezpublish/extension/ezwebin_rafter/design/ezwebin

Original siteaccess:
/usr/local/apache2/htdocs/ezpublish/settings/siteaccess/ezwebin_site
New siteaccess:
/usr/local/apache2/htdocs/ezpublish/settings/siteaccess/ezwebin_rafter

Cheers
Jeff

Asking the dumb questions for your benefit

Olivier Portier

Tuesday 28 April 2009 1:40:10 am

Hi Jeff,

First in your settings/site.ini.append.php your extension should be activated before ezwebin's:

[ExtensionSettings]
ActiveExtensions[]=ezwebin_rafter
...
ActiveExtensions[]=ezwebin

Then in your extension/ezwebin_rafter/settings/design.ini.append.php you need to define your design and your CSS :

[ExtensionSettings]
DesignExtensions[]=ezwebin_rafter

[StylesheetSettings]
CSSFileList[]
CSSFileList[]=mycss.css

Your templates will be loaded before ezwebin templates if their path are exactly the same.
Hope this will help you.
Regards
Olivier

cousin mosquito

Friday 15 May 2009 3:02:11 am

Thanks heaps!
That all worked well.

Cheers
JEff

Asking the dumb questions for your benefit

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 31 2025 03:45:02
Script start
Timing: Jan 31 2025 03:45:02
Module start 'layout'
Timing: Jan 31 2025 03:45:02
Module start 'content'
Timing: Jan 31 2025 03:45:02
Module end 'content'
Timing: Jan 31 2025 03:45:02
Script end

Main resources:

Total runtime0.0446 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 588.2656151.2266
Module start 'layout' 0.00820.0067 739.4922220.7344
Module start 'content' 0.01490.0278 960.22661,001.9609
Module end 'content' 0.04270.0019 1,962.187533.9922
Script end 0.0446  1,996.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00316.9933140.0002
Check MTime0.00122.6397140.0001
Mysql Total
Database connection0.00112.422310.0011
Mysqli_queries0.004710.533730.0016
Looping result0.00000.040610.0000
Template Total0.00112.510.0011
Template load0.00092.007710.0009
Template processing0.00020.508610.0002
Override
Cache load0.00061.407210.0006
General
dbfile0.00388.534680.0005
String conversion0.00000.021940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs