apply CSS classes to HTML outputted by attribute_view_gui

Author Message

Dominik Pich

Thursday 04 December 2003 3:35:15 am

I'd like to pass a var containing the name of the css class to attribute_view_gui and have it apply it to the returned html.

For images I could just pass it and edit ezimage.tpl to write in the assembled img tag.
But for xmltag I cant edit the xmltext.tpl as there are no tags there...
It just outputs the text and THAT starts with <p> and ends with </P>. The Tag I'd like to apply my css to.

How would I go in allowing a 2. variable in attribute_view_gui specifying the css.
Applying it on the first html tag.

Björn Dieding@xrow.de

Thursday 04 December 2003 5:42:46 am

There might be a nicer way to do it...

As you propably know you can use Inheritance with CSS that should solve this in a more nicer way

<style>
.bla P {
#something nice
}
.elsebla P {
#something nice
}
</sytle>
<div calss="bla">
{attribute_view_gui some futher bla}
</div>
<div calss="elsebla">
{attribute_view_gui some futher bla}
</div>

check the w3c...

http://www.w3.org/TR/REC-CSS2/cascade.html#inheritance

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.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 31 2025 06:13:52
Script start
Timing: Jan 31 2025 06:13:52
Module start 'layout'
Timing: Jan 31 2025 06:13:52
Module start 'content'
Timing: Jan 31 2025 06:13:52
Module end 'content'
Timing: Jan 31 2025 06:13:52
Script end

Main resources:

Total runtime0.0201 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.0077 588.3906151.2422
Module start 'layout' 0.00770.0037 739.632836.7109
Module start 'content' 0.01140.0072 776.343890.2188
Module end 'content' 0.01860.0014 866.562529.9922
Script end 0.0201  896.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.0167140.0002
Check MTime0.00125.7303140.0001
Mysql Total
Database connection0.00094.359110.0009
Mysqli_queries0.003919.580230.0013
Looping result0.00000.213310.0000
Template Total0.00115.310.0011
Template load0.00084.047410.0008
Template processing0.00031.252710.0003
Override
Cache load0.00052.695110.0005
General
dbfile0.002211.184580.0003
String conversion0.00000.064040.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