css from extension doesnt render

Author Message

Erland Flaten

Tuesday 20 October 2009 2:03:13 am

I have made a designextension, but the css from the extension doesent render.

The div#header that get rules from site-colors and the extensions css file

http://www.vintersportsregionen.no/var/storage/packages/eZ-systems/ezwebin_design_blue/files/default/file/site-colors.css
http://www.vintersportsregionen.no/extension/vsp/design/vsp/stylesheets/vsp.css

I have looked at settings but cant see where the problem is. Her are some of them:

settings/override/site.ini.appende.php has:

[ExtensionSettings]
ActiveExtensions[]=ezodf
ActiveExtensions[]=ezoe
ActiveExtensions[]=ezurlaliasmigration
ActiveExtensions[]=ezwebin
ActiveExtensions[]=vsp
....

[SiteSettings]
DefaultAccess=vsp
SiteList[]=vsp
SiteList[]=site
....

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=vsp
AvailableSiteAccessList[]=site

settings/override/design.ini.php

SiteCSS=var/storage/packages/eZ-systems/ezwebin_design_blue/files/default/file/site-colors.css
ClassesCSS=var/storage/packages/eZ-systems/ezwebin_design_blue/files/default/file/classes-colors.css

siteaccess/vsp/site.ini.append.php :

[DesignSettings]
SiteDesign=vsp
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base
..

siteaccess/vsp/design.ini.append.php

SiteCSS=var/storage/packages/eZ-systems/ezwebin_design_blue/files/default/file/site-colors.css
ClassesCSS=var/storage/packages/eZ-systems/ezwebin_design_blue/files/default/file/classes-colors.css
CSSFileList[]=yui/build/calendar/assets/calendar.css
CSSFileList[]=vsp.css

extension/vsp/settings/design.ini.append.php

[ExtensionSettings]
DesignExtensions[]=vsp

I have another site that use a design extension. The css looks ok at that site and the css rules from my css-file is used.

Erland Flaten
Lilllehammer, Norway

André R.

Tuesday 20 October 2009 5:16:03 am

SiteCSS and ClassesCSS are normally the last thing to load among the css files. So they override any prior styles. You'll see that when debugging the styles using Firebug or similar tools for your browser. So either add the changes into the site-colors.css*, or use !important (ugly), or use a css selector with higher precission and therefor higher priority like div#header-position div#header (slightly ugly as well).

* Cleanest approach is creating your own site style package, but it is a bit of a manual work since there is no gui to add additional style images or edit css files after you have created the package, so you'll have to edit it directly on filesystem before you export it as a package (if you want to).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 15:53:24
Script start
Timing: Jan 18 2025 15:53:24
Module start 'layout'
Timing: Jan 18 2025 15:53:24
Module start 'content'
Timing: Jan 18 2025 15:53:25
Module end 'content'
Timing: Jan 18 2025 15:53:25
Script end

Main resources:

Total runtime1.0900 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.5234152.6250
Module start 'layout' 0.00500.0031 742.148439.4453
Module start 'content' 0.00811.0802 781.5938533.9531
Module end 'content' 1.08830.0017 1,315.546912.1563
Script end 1.0899  1,327.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2917160.0002
Check MTime0.00130.1198160.0001
Mysql Total
Database connection0.00080.071810.0008
Mysqli_queries1.029494.4367540.0191
Looping result0.00060.0525520.0000
Template Total1.057197.020.5285
Template load0.00210.191620.0010
Template processing1.055096.787120.5275
Template load and register function0.00030.022910.0003
states
state_id_array0.00110.099110.0011
state_identifier_array0.00190.175920.0010
Override
Cache load0.00170.1545230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.062620.0003
Fetch class attribute name0.00160.149430.0005
XML
Image XML parsing0.01060.968720.0053
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.01271.1692170.0007
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs