Can attribute_view_gui output be controlled?

Author Message

Andrew Zahra

Thursday 12 February 2004 6:46:38 pm

When I do this:
{attribute_view_gui attribute=$node.object.data_map.image}

I get HTML like this:
<img src="/ezpublish/var/corporate/storage/images-versioned/586/1-eng-GB/a_diagram1_large.png" width="300" height="225" border="0" alt="A Diagram" title="A Diagram" />

I don't want these size constraints on my image. Can I control them or extract the path so I can generate my own HTML?

Paul Forsyth

Friday 13 February 2004 12:30:19 am

IIRC, I believe you can pass in values of your own, but the template must be able to respond to the size.

For example:

{attribute_view_gui attribute=$node.object.data_map.image height=225 width=300}

then you should override the image template with your own that does something like this:

<img src="/ezpublish/var/corporate/storage/images-versioned/586/1-eng-GB/a_diagram1_large.png" width={$width} height={$height} border="0" alt="A Diagram" title="A Diagram" />

Paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.