Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Image gallery : Display more than one album on the same page

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1384 Views
  • nostradamus1935
    Avatar
    Community Member
    9 Posts

    Image gallery : Display more than one album on the same page Link to this post

    Hi,

    I'm new to Silver Stripe and I'm using the Image gallery module on a site. I'd like to have more than one album showing at the same time on a page, one over the other, but I haven't been able to figure out how to do this through Image gallery. What I'm doing instead is something like this :

    <% control Albums %>
    <% control GalleryItems %>
    ... some formatting
    $Thumbnail, $Image, etc.
    <% end_control %>
    <% end_control %>

    It's not satisfying because I feel I'm going around the problem and I can't use my gallery_ui templates very well, being more limited in scope...

    I'm pretty sure it's possible and it mustn't be too complicated but I haven't found much documentation on this module...
    I guess the same trick would allow me to, say, show only the second album, or the third...

    Does anyone have an idea on how to do that ?

    Thanks all.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image gallery : Display more than one album on the same page Link to this post

    You can do think pretty easily by subclassing the page. I'm a little confused about what you want, though. If you want all the images to display, then why not just have one album?

  • nostradamus1935
    Avatar
    Community Member
    9 Posts

    Re: Image gallery : Display more than one album on the same page Link to this post

    Yes, I've been able to show all items of all albums in one place, but albums are important on this page because images are to be organized in categories. I'll explain :
    I have one album with large images that I want to cycle (a small jquery fade gallery_ui). This works.
    What I want is to have another album (or more) that use another gallery_ui (a scrollable) that I place elsewhere and that shows in ordered groups, let's say steps or images of a same thing. What I can't do is do it for only one album a at time, changing the ui on the go, etc. I've tried overloading (is that the term ?) GalleryItems from ImageGalleryPage but it wouldn't do what I want...

    Maybe my question would be better stated as : how do you control each album individually in a gallerypage ?
    It's very possible that the solution is simple. I'm actually guessing it is and I'm just missing something... I haven't explored all the module yet, or the entire cms for that matter, but it looks solid.

    Thanks for the quick answer btw !

    1384 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.