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.