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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Image gallery, display 4 images from album instead of cover image?


Reply

6 Posts   872 Views

Avatar
FireMe!

8 October 2010 at 12:24am Community Member, 74 Posts

Hi guys,

I think the title explains what I need help with, On the image gallery module I want to display 4 images from the album instead of displaying the cover image? is this this a feature built in, If so how would I go about it?

thanks in advance,

Fire

Avatar
FireMe!

9 October 2010 at 2:13am Community Member, 74 Posts

Please someone has to know a way? thanks

Avatar
UncleCheese

9 October 2010 at 10:05am 4085 Posts

/your_theme/templates/Layout/ImageGalleryPage.ss

<% control Albums %>
<li>
<% control GalleryItems(4) %>
$Image.SetWidth(100)
<% end_control %>
</li>
<% end_control %>

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
FireMe!

9 October 2010 at 11:16pm Community Member, 74 Posts

Hi UncleCheese,

I have gave it a try but it just seems to display all the images from each album, The 4 does not seem to limit it to 4.

Thanks in advance
FireMe!

Avatar
FireMe!

11 November 2010 at 1:32am Community Member, 74 Posts

Please any idea why this is happening?

thanks,
FM

Avatar
FireMe!

13 November 2010 at 3:15am Community Member, 74 Posts

Please help, I don't want all the images from each album displayed just 4?

Thanks in advance
FM