Displaying object-image attribute in a template

Displaying object-image attribute in a template

Friday 16 May 2003 7:14:37 am - 2 replies

Author Message

Jo Henrik Endrerud

Saturday 17 May 2003 7:58:20 am

I assume that the attribute for the image is called "image"

{$display:item.data_map.image.content[large].full_path} will return the path to the image. Place this inside a <img> tag like this:

<img src={$display:item.data_map.image.content[large].full_path|ezroot} />

change large to medium, small or reference to get different sizes of the image.

BTW: I haven't checked this up, I'm writing just from my memory, but I'm almost 100% sure of the syntax. If this doesn't work let me know and I'll look it up (or use the |attribute(show) function to check how to get the path like this: {$display:item.data_map.image.content[large]|attribute(show)}

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Paul Wilson

Sunday 18 May 2003 12:50:09 am

Thanks enormously! That's it!

Works wonderfully now. :-)

You must be logged in to post messages in this topic!

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