Forums / Developer / Custom Class with 10 images attributes

Custom Class with 10 images attributes

Author Message

Nikunj Jariwala

Friday 22 May 2009 1:08:17 pm

Hi,
I have created a custom class using 10 images attributes. I am able to display those images on a page but i was wondering how to get the thumbnail of the images to display on the page with each image as a link to the larger view of the image.
Thanks.

Luis Micunco

Wednesday 05 August 2009 3:59:42 am

Try this:

<a href="{$node.data_map.image.content[original].url|ezroot('no')}"><img src={$node.data_map.image.content[medium].url|ezroot} /></a>

You can replace "medium" by any other default sizes:

AliasList[]
AliasList[]=reference
AliasList[]=small
AliasList[]=tiny
AliasList[]=medium
AliasList[]=large
AliasList[]=rss

Optionally you can create your own in "image.ini"