image links within a linked CSS file..

Author Message

Jason Brock

Wednesday 28 May 2003 9:47:34 pm

Does the substitution parser work with external CSS files?
How do I reference images?

.bannerBgVWD1 {
background-image: url(http://localhost/design/demo/images/bg_ivr.gif);
}

Ta,
Jb.
--

Bård Farstad

Thursday 29 May 2003 5:48:45 am

No, eZ publish does not parse css files. So you will not be able to use the ezurl operator and friends in .css files.

--bård

Documentation: http://ez.no/doc

Fred Nerks

Thursday 17 March 2005 9:05:08 am

Does that mean that all URLs within linked files need to be relatively referenced?

Łukasz Serwatka

Thursday 17 March 2005 11:36:28 pm

@Fred

You can use both relative or absolute but relative is more flexible (if you move your site for example)

.bannerBgVWD1 {
    background-image: url(../images/bg_ivr.gif);
}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Xavier Dutoit

Thursday 17 March 2005 11:40:31 pm

Two problems I've had when I started using css:

- don't put space between 'url' and '('
- the image's url has to be defined relatively to the css file, not from the root of the web site nor the page containing the css.

Have fun,

X+

http://www.sydesy.com

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 11:00:44
Script start
Timing: Jan 18 2025 11:00:44
Module start 'layout'
Timing: Jan 18 2025 11:00:44
Module start 'content'
Timing: Jan 18 2025 11:00:45
Module end 'content'
Timing: Jan 18 2025 11:00:45
Script end

Main resources:

Total runtime0.9276 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.1484152.6406
Module start 'layout' 0.00670.0038 741.789139.4766
Module start 'content' 0.01050.9155 781.2656677.2109
Module end 'content' 0.92600.0016 1,458.476612.1406
Script end 0.9275  1,470.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3701160.0002
Check MTime0.00130.1421160.0001
Mysql Total
Database connection0.00080.082410.0008
Mysqli_queries0.866793.4429690.0126
Looping result0.00080.0860670.0000
Template Total0.888895.820.4444
Template load0.00190.204220.0009
Template processing0.886995.618020.4435
Template load and register function0.00040.044910.0004
states
state_id_array0.00100.104010.0010
state_identifier_array0.00160.173220.0008
Override
Cache load0.00160.1721290.0001
Sytem overhead
Fetch class attribute can translate value0.00080.086750.0002
Fetch class attribute name0.00150.165980.0002
XML
Image XML parsing0.00180.189250.0004
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00100.1096310.0000
String conversion0.00000.001040.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs