Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Extending Image Gallery template


Reply

2 Posts   1083 Views

Avatar
kuenkuen82

20 April 2010 at 9:33pm (Last edited: 21 April 2010 2:47pm), Community Member, 41 Posts

<div id="album-list">
   <ul>
   <% control Albums %>
         <li>
         <div class="defaultImage">
            <a href="$Link" title="$Title">
            <% if CoverImage %>
               <% control FormattedCoverImage %>
                  <img src="$URL" alt="" />
               <% end_control %>
            <% else %>
               <span class="no-image"></span>
            <% end_if %>
            </a>
      <% control GalleryItems(3) %>
         $GalleryItem test
      <% end_control %>

            
         </div>
         <div class="galleryDetails">
            <h4>$ProjectCode <a href="$Link" title="$Title">$AlbumName</a> ($ImageCount photos)</h4>
            <div class="galleryDescription">$Description.LimitWordCount(60)</div>   
            <p>Related M Moser office: $MMoserOffice</p>
         </div>
         </li>
   <% end_control %>
   </ul>
</div>

Instead of using the Album Image, I was to use the first 3 images from the actual Album

Avatar
kuenkuen82

21 April 2010 at 2:47pm (Last edited: 21 April 2010 2:48pm), Community Member, 41 Posts

<% control Albums %>
      <% control ImageGalleryPage %>
         <% control GalleryItems(3) %>
            $GalleryItem
         <% end_control %>
      <% end_control %>
<% end_control %>


Ok the above code show the first 3 images, but how do I get the current looped Album?