Friday 14 November 2003 6:26:17 am
Hi,
a suggestion for the /design/standard/templates/content/browse.tpl If you want to assign an image to a node (object relation or as related object), the browse-feature only show the name of the image and not the image itself. That's not user friendly because a user - in most cases - don't remember the name of the image. So it's easier to show the image additional to the name. Insert following code in the browse.tpl:
Line 85: Instead of <img src={"class_2.png"|ezimage} border="0" alt="{'Document'|i18n('design/standard/node/view')}" />
New code: ----------
{section show=is_set($Object:item.data_map.image)}
<div align="imageleft">
{attribute_view_gui attribute=$Object:item.data_map.image image_class='small'}
</div>
{section-else}
{section show=is_set($Object:item.data_map.thumbnail)}
<div align="imageleft">
{attribute_view_gui attribute=$Object:item.data_map.image image_class='small'}
</div>
{section-else}
{section show=is_set($Object:item.data_map.icon)}
<div align="imageleft">
{attribute_view_gui attribute=$Object:item.data_map.icon image_class='small'}
</div>
{section-else}
<img src={"class_2.png"|ezimage} border="0" alt="{'Document'|i18n('design/standard/node/view')}" />
{/section}
{/section} {/section}
Kind regards, Emil.
Best wishes,
Georg.
--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
|