Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.1.0
-
None
Description
Hi,
upload_images.tpl,
Line 140:
We have some image classes where the identifier of the image is not "image", so the image isn't displayed.
Someting like this would be nice:
{def $image_id=false()} {if is_set( $img.object.data_map.image )} {set $image_id='image'} {else} {foreach $img.object.data_map as $img_key => $img_item} {if $img_item.data_type_string|eq( 'ezimage' )} {set $image_id=$img_key} {break} {/if}{/foreach}
{/if} {if $image_id} {attribute_view_gui attribute=$img.object.data_map.$image_id image_class=small} {/if} {undef $image_id}
Best wishes,
Georg.