CSS

Author Message

David Santiso

Saturday 29 January 2011 11:48:58 am

Hi,

I've been overwriting templates while I was building my website. Now I want to edit CSS files.

Can I override the CSS I want as the templates? Or have I to create new CSS files?
How do I do it?

Thanks,

David

Thiago Campos Viana

Saturday 29 January 2011 1:38:03 pm

You can override as the templates or, if you are creating a design extension, you can create a design.ini.append.php file and define a new css file:

[StylesheetSettings]
FrontendCSSFileList[]=yourstyle.css

Then you need to create the yourstyle.css file inside the stylesheets folder of your design folder. Just don't forget that you need to know the priority of your extension is defined in the settings/override/site.ini.append.php

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

David Santiso

Sunday 30 January 2011 8:56:21 am

Thanks.

I have enabled debug in the front. Then comes a list of templates that are being used and a button to the right to override it. Then creates an override in the default folder "design/ezflow/override/templates/".

There is any way to do something similar with CSS?

If I do it by modifying the file "design.ini.append.php" where have I to put the new CSS?

Thiago Campos Viana

Monday 31 January 2011 7:27:55 am

Hello David, you need to put the new css inside any stylesheets folder of any of your extensions or in some design folder. Best pratice is create a design extension and put it there, and also all your templates/images/javascripts files.

If you need some more help, just ask.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

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 03:10:56
Script start
Timing: Jan 18 2025 03:10:56
Module start 'layout'
Timing: Jan 18 2025 03:10:56
Module start 'content'
Timing: Jan 18 2025 03:10:57
Module end 'content'
Timing: Jan 18 2025 03:10:57
Script end

Main resources:

Total runtime1.1377 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 588.8203152.5938
Module start 'layout' 0.01040.0041 741.414139.3828
Module start 'content' 0.01451.1218 780.7969551.4219
Module end 'content' 1.13630.0014 1,332.218812.5313
Script end 1.1377  1,344.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2961160.0002
Check MTime0.00130.1184160.0001
Mysql Total
Database connection0.00100.091210.0010
Mysqli_queries1.084895.3504600.0181
Looping result0.00050.0425580.0000
Template Total1.101496.820.5507
Template load0.00180.156320.0009
Template processing1.099696.644520.5498
Template load and register function0.00020.016710.0002
states
state_id_array0.00070.065710.0007
state_identifier_array0.00080.074020.0004
Override
Cache load0.00150.1297240.0001
Sytem overhead
Fetch class attribute can translate value0.00070.063120.0004
Fetch class attribute name0.00100.088450.0002
XML
Image XML parsing0.00060.051120.0003
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00080.0727160.0001
String conversion0.00000.001340.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs