Is there a way to override templates in stylesheets

Author Message

Gabriel Ambuehl

Wednesday 16 February 2005 2:43:52 am

I'm playing around with the stylesheet functionality. I however can't seem to figure out if I can do template overrides within a stylesheet?

Is that possible? If so where do I need to place the files?

Visit http://triligon.org

Arran Price

Wednesday 16 February 2005 1:25:49 pm

Hi,
Im not quite sure I uderstand the question but...

To override stylesheets I think you just put them in the design/your_site/stylesheet directory.

If you are wanting to change the style based on which node etc you might be in as per the template overrides, cant you just put logic in the template to display different div tags which will reference the different styles you want?

remember to put a reference to any stylesheet you use in the pagelayout.tpl eg:

@import url({"stylesheets/datastylez.css"|ezdesign});

Hope thats of some help.

Arran

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 13:55:02
Script start
Timing: Jan 20 2025 13:55:02
Module start 'layout'
Timing: Jan 20 2025 13:55:02
Module start 'content'
Timing: Jan 20 2025 13:55:03
Module end 'content'
Timing: Jan 20 2025 13:55:03
Script end

Main resources:

Total runtime0.8202 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.0043 589.3984152.6563
Module start 'layout' 0.00430.0034 742.054739.4922
Module start 'content' 0.00770.8112 781.5469486.3828
Module end 'content' 0.81900.0011 1,267.92978.2813
Script end 0.8201  1,276.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3761160.0002
Check MTime0.00120.1519160.0001
Mysql Total
Database connection0.00060.072410.0006
Mysqli_queries0.777394.7744540.0144
Looping result0.00040.0474520.0000
Template Total0.792696.620.3963
Template load0.00190.234720.0010
Template processing0.790696.401620.3953
Template load and register function0.00010.013910.0001
states
state_id_array0.00090.104710.0009
state_identifier_array0.00060.077020.0003
Override
Cache load0.00160.1963140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.065120.0003
Fetch class attribute name0.00080.100620.0004
XML
Image XML parsing0.00020.026620.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00050.0660100.0001
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
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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs