page_head_style.tpl and missing CSS files

page_head_style.tpl and missing CSS files

Tuesday 27 July 2010 2:45:09 am - 3 replies

Author Message

Charles Okech

Wednesday 28 July 2010 9:25:00 am

Hi Laurent,

why don't you try it this way?

Override page_head_style.tpl in your design/your_design/templates/page_head_style.tpl with this code:

<style type="text/css">
    @import url({ezini('StylesheetSettings','ClassesCSS','design.ini')|ezroot(no)});
    @import url({ezini('StylesheetSettings','SiteCSS','design.ini')|ezroot(no)});
</style>

Then you can set the CSS files you'd like to replace them with in your settings/siteaccess/settings/design.ini.append.php:

[StylesheetSettings]
ClassesCSS=path_to_your_design/your_design/stylesheets/your_new_classes-colors.css
SiteCSS=path_to_your_design/your_design/stylesheets/your_new_site-colors.css

Of course you have to ensure that the CSS files exist.

Hope that was a little helpful.

Charles Okech

Wednesday 28 July 2010 9:29:02 am

settings/siteaccess/settings/design.ini.append.php:

Sorry. That should read: settings/siteaccess/your_site_access/design.ini.append.php.

laurent le cadet

Thursday 29 July 2010 1:48:00 am

Thanks Charles.

In fact there is a priority of ezjscore extension (ezjscore/design/templates/page_head_style.tpl) over ezwebin extension.
Confusion.
Laurent

You must be logged in to post messages in this topic!

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