Page 1 of 1

Gallery - Show images from subgallery in same template

Posted: Wed Apr 17, 2013 8:52 am
by Lieke
Hello,

I've got a question. In gallery I made a lot of galleries, and all galleries has 2 subgalleries.

- Name of artist (gallery)
- Sold (subgallery)
- Preview (suballery)

On the page I use:
{gallery dir='Name of artist"}
{gallery dir='Name of artist/Sold"}
{gallery dir='Name of artist/Preview"}

Sometimes there's just 1 subgallery, so what I want is that I just use
{gallery dir='Name of artist"}.
But then I have to change the template of the gallery Name of artist. I want to show the subdirectories of this gallery when it has content. And I don't want an folderthumbnail but the images of this subgallery.

So if the visitor clicks on the artist a page with all images shows from all subdirectories. Is this possible?
???

Re: Gallery - Show images from subgallery in same template

Posted: Wed Apr 17, 2013 5:24 pm
by velden
You might want to have a look at this post http://forum.cmsmadesimple.org/viewtopi ... 33#p290133

I think it should work in your case (maybe with some modifications)

Edit:

I read the post again and it does something else than you want, however it can help you to understand how to walk through sub galleries and call a {gallery} instance for every found sub gallery.

Start reading from:
I created two templates within Gallery

Template 'gallerytree2':

Re: Gallery - Show images from subgallery in same template

Posted: Sun Apr 21, 2013 4:25 pm
by Lieke
Thanks a lot, I'll look into it. :)