Forums / Developer / ObjectRelationsList and Image Preview

ObjectRelationsList and Image Preview

Author Message

Alejandro Dominguez

Wednesday 06 April 2011 3:25:42 am

Hello guys,

I have an ObjectRelationsList attribute with Image Classes. Is there any possibility to show a preview o the images?

I attach an screenshot of my ObjectRelationList view http://img863.imageshack.us/i/imagesst.jpg/

cheers

Alejandro Dominguez

Thursday 07 April 2011 2:28:39 am

I found a solution!

Note:I have the BackWardCompatibility enabled

You have to create an override of ezobjectrelationlist.tpl . Then you need to add a new cell header for the images "Preview" and then a new row with the following

<td>{attribute_view_gui attribute=$Relation:object.data_map.image  image_class=small}</td>