Friday 02 July 2010 1:46:49 am
I did similar thing without using Extension an my gallery was not an scrolling one.
1. created a folder in my media library to hold my images.
2. Created class similar to images class but with one more image attribute to hold small image. 3.Fetched that images on my Pagelayout using code which is somewhat similar to below code, I have used lyte box functionality for my gallery where 83 is the id of the folder holding images.
{def $photos = fetch(content,list,hash('parent_node_id','83'))}
{foreach $photos as $photo}
{if $photo.data_map.small_image.has_content}
<a href={$photo.data_map.big_image.content['original'].full_path|ezroot()} title="" rel="lytebox[half]"><img border="0" src={$photo.data_map.<strong>small_image</strong>.content['original'].full_path|ezroot()} /></a> {/if}
{/foreach}
{undef $photos}
{/if} this might help you :) Sandeep
|