I found a thread ( http://www.silverstripe.org/archive/show/126874#post126874 ) which talks about displaying thumbnails in GalleryHolder.php(displaying thumbs is easy in GalleryPage, however the issue is I cannot find the gallery items within the children control of the GalleryHolder.php).
Here is the example that is demonstrated in the other thread:
<% control children %> <a href="$Link">$Title</a> <% control CurrentGalleryItems %> <!-- Template stuff, copied from GalleryPageContent.ss to display the images --> <% end_control %> <a href="$Link">go to gallery >></a> <% end_control %>
When i do this i'm not getting any data passed to my <% control CurrentGalleryItems %>. I did an <% if CurrentGalleryItems %> and it never returns true..am I missing something to send current gallery items?
Here is my current GalleryHolder.ss file
<% control Children %> <% control CurrentGalleryItems %> <img src="$ThumbnailURL" alt="$Title"/> <% end_control %> <div id="$URLSegment" class="articleHolder" style=""> <div><a href="$URLSegment">$Title</a></div> <p class="articleCopy">$Content</p><% include GalleryPageContent %> </div> <% end_control %>
However, CurrentGalleryItems is not returning any data even though if they gallery is working..am I missing something? Thanks!