URLs in stylesheets

Author Message

Børge Warvik

Friday 27 January 2006 4:11:53 am

Hi

I've search the forum for this topic but haven't found a solution, and I'm pretty sure that there are none. But to be completly sure I'm asking here :)

How do you set the urls in stylesheets? Is there any eZ solution for this, is there any way to use the ezdesign operator? Or do I have to use the full path from the root?

Can I use a template for this? Like:

<style type="text/css">
{include url="design:style.tpl"}
</style>

Or is that just av very bad idea?

Thomas Nunninger

Friday 27 January 2006 4:31:04 am

Hi,

normally stylesheets are not delivered (and parsed) by eZ publish. They are delivered directly by your web server. (Have a look in the sourcecode of your frontpage: something like 'import "/design/plain/stylesheets/..."; confer the rules for modrewrite in virtual host setup.)

Of course theoretically it would be possible to create a stylesheet which is parsed by eZ publish and then you can use any template code you want.

Have a nice day

Thomas

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 19 2025 15:21:48
Script start
Timing: Jan 19 2025 15:21:48
Module start 'layout'
Timing: Jan 19 2025 15:21:48
Module start 'content'
Timing: Jan 19 2025 15:21:49
Module end 'content'
Timing: Jan 19 2025 15:21:49
Script end

Main resources:

Total runtime0.7167 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.0041 590.2813152.6250
Module start 'layout' 0.00410.0020 742.906339.4297
Module start 'content' 0.00610.7091 782.3359500.9609
Module end 'content' 0.71520.0014 1,283.29698.1875
Script end 0.7166  1,291.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3712160.0002
Check MTime0.00120.1609160.0001
Mysql Total
Database connection0.00060.081810.0006
Mysqli_queries0.676394.3685540.0125
Looping result0.00040.0529520.0000
Template Total0.691396.520.3457
Template load0.00170.231820.0008
Template processing0.689696.225620.3448
Template load and register function0.00010.015110.0001
states
state_id_array0.00070.099210.0007
state_identifier_array0.00120.168320.0006
Override
Cache load0.00140.1958170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.052020.0002
Fetch class attribute name0.00110.152740.0003
XML
Image XML parsing0.00280.394520.0014
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00350.4895220.0002
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs