Forums / Setup & design / page_head_style.tpl and missing CSS files

page_head_style.tpl and missing CSS files

Author Message

laurent le cadet

Tuesday 27 July 2010 2:45:09 am

Hi,

I'm using 2 differents sites (4.2.0 and 4.3.0) which produce the same error.

The page_head_style.tpl file produces this part of code :

<<span class="start-tag">style</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/css"</span>>
    @import url(/stylesheets/t02/classes-colors.css);
    @import url(/stylesheets/t02/site-colors.css);
</<span class="end-tag">style</span>>

I don't use this files and I have a 404 error.
I'm unabled to change ezwebin/design/ezwebin/templates/page_head_style.tpl, there is no effect like this file is override somewhere else but I don't know where.

Could someone help me?

Regards.

Laurent

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