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

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 30 2025 19:52:42
Script start
Timing: Jan 30 2025 19:52:42
Module start 'layout'
Timing: Jan 30 2025 19:52:42
Module start 'content'
Timing: Jan 30 2025 19:52:42
Module end 'content'
Timing: Jan 30 2025 19:52:42
Script end

Main resources:

Total runtime0.0264 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.2656151.2266
Module start 'layout' 0.00520.0047 739.4922220.7188
Module start 'content' 0.00990.0147 960.21091,002.0703
Module end 'content' 0.02470.0017 1,962.281333.9922
Script end 0.0263  1,996.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.0935140.0002
Check MTime0.00103.9007140.0001
Mysql Total
Database connection0.00072.513410.0007
Mysqli_queries0.003613.475430.0012
Looping result0.00000.045210.0000
Template Total0.00134.710.0013
Template load0.00103.650410.0010
Template processing0.00031.069210.0003
Override
Cache load0.00062.316410.0006
General
dbfile0.00134.850680.0002
String conversion0.00000.029840.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