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   1150 Views

Avatar
kuenkuen82

Community Member, 41 Posts

20 April 2010 at 9:33pm

Edited: 21/04/2010 2:47pm

<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

Community Member, 41 Posts

21 April 2010 at 2:47pm

Edited: 21/04/2010 2:48pm

<% 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?