Problem with attribute_view_gui displaying images

Author Message

willy jansen

Monday 13 September 2004 2:59:49 am

In some place in my web site (ezpub 3.4) the attribute_view_gui doesn't display the images in a correct way

It seems the attribute_view_gui function does not use the correct template to display the image...

I use exactly the same code in the templates design/base/override/templates/full/folder.tpl
and
design/base/override/templates/full/article.tpl

the code is

{attribute_view_gui attribute=$node.object.data_map.image align=right image_class=large}

With template debugging output enabled, in the 1st case (folder.tpl) the system uses these templates:

design/standard/templates/content/datatype/view/ezobjectrelation.tpl
design/base/override/templates/textlinked/image.tpl
design/standard/templates/content/datatype/view/ezimage.tpl

In the 2nd case (article.tpl) it takes:
design/base/override/templates/datatype/ezobjectrelation/image.tpl
design/standard/templates/content/datatype/view/ezimage.tpl

Does anybody have a clue what might be the problem here?

Stuart Herring

Tuesday 28 September 2004 4:44:16 am

I have the same problem. It's particularly annoying because textlinked/image.tpl hardcodes image_class when it calls ezimage.tpl again. I thought I could fix it by overriding textlinked/image myself, and passing the appropriate image_class value through, but it seems that the arguments set by the initial attribute_view_gui call are not available...

The part I don't understand very well, is how come ezobjectrelation.tpl gets called in the first place?
And then why doesn't it get called again when image.tpl calls attribute_view_gui again?

Michael D.

Tuesday 22 March 2005 12:45:17 am

Could somebody solve this problem yet?

Because I have the same problem and would appreciate a solution.

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