How to handle site.css by new style upload

Author Message

Bernd Grand

Wednesday 11 October 2006 1:11:24 am

I’m new to eZ publish and find it’s a very interesting tool!
I’ve followed the lection "Creating a custom style I-IV" on your homepage and was able to upload my changes as new style also.

Unfortunately the site.css file and settings are lost now.
During the import only the two color css files was requested and uploaded.
How is that with the site.css file and its settings?

I’m interested to change the WIDTH of my site that is currently fixed to 750px.
How can I change the WIDTH now?

Thanks and Best Regards,
Bernd

Claudia Kosny

Thursday 12 October 2006 5:41:23 am

Hello Bernd

I have never followed this lecture so I don't know what exactly happened to your site.css.
I would just insert it into the pagelayout.tpl like you would do with a normal html file.

To do that open the pagelayout.tpl and have alook at the aprt where the css files are imported. This should look roughly like this

<style type="text/css">
    @import url({'stylesheets/core.css'|ezdesign});
    @import url({'stylesheets/site.css'|ezdesign});
    @import url({'stylesheets/debug.css'|ezdesign});
{section var=css_file loop=ezini( 'StylesheetSettings', 'CSSFileList', 'design.ini' )}
    @import url({concat( 'stylesheets/',$css_file )|ezdesign});
{/section}
</style>

I think the loop adds the css files you imported although I am not sure about that. If the site.css is not there anymore just add it again. If it is there, the settings are most likely overwritte by one of the other css files. In this case try to change the order of the files, although this might mean that your settings are overwritten now, this depends on the content of your stylesheets.

To change the width have a look at the css files.Somewhere it will say something about width either for the body tag or for a div which contains the rest of the html. This depends on your css file so I cannot help you there. If you don't know where the stylesheets are located just search for them by their name in the stylesheets folder using the search function on your computer. If you should need help with that just ask.

Greetings from Luxembourg

Claudia

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 20 2025 20:18:37
Script start
Timing: Jan 20 2025 20:18:37
Module start 'layout'
Timing: Jan 20 2025 20:18:37
Module start 'content'
Timing: Jan 20 2025 20:18:37
Module end 'content'
Timing: Jan 20 2025 20:18:37
Script end

Main resources:

Total runtime0.0133 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0469151.2266
Module start 'layout' 0.00530.0024 739.273436.6797
Module start 'content' 0.00780.0043 775.953190.2031
Module end 'content' 0.01210.0011 866.156329.9922
Script end 0.0132  896.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.5741140.0002
Check MTime0.00107.2067140.0001
Mysql Total
Database connection0.00096.611710.0009
Mysqli_queries0.002417.756930.0008
Looping result0.00000.089910.0000
Template Total0.00096.610.0009
Template load0.00064.742110.0006
Template processing0.00021.810210.0002
Override
Cache load0.00043.347210.0004
General
dbfile0.00021.630480.0000
String conversion0.00000.052140.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