use image_class to downsize an object-related image

Author Message

Softriva .com

Friday 09 February 2007 12:21:55 am

How can I downsize an object-related images. I used the following with no help

{$node.name}
{attribute_view_gui image_class=small attribute=$node.data_map.news_image}

I also tried this with no help

{$node.name}
{attribute_view_gui attribute=$node.data_map.news_image image_class=small}

By the way news_image is an object-relation datatype

Bruce Morrison

Friday 09 February 2007 1:02:06 am

Hi OOzy

Try

{$node.name}
{attribute_view_gui image_class=small attribute=$node.data_map.news_image.content.data_map.image}

Because news_image is an object relation datatype you need to passwd the image attribute of the related object to attribute_view_gui

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Softriva .com

Friday 09 February 2007 2:29:21 am

Worked perfect.

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