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.