Gallery - Show images from subgallery in same template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Lieke
Forum Members
Forum Members
Posts: 42
Joined: Thu Dec 06, 2007 12:47 pm
Location: The Netherlands

Gallery - Show images from subgallery in same template

Post 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?
???
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Gallery - Show images from subgallery in same template

Post 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':
User avatar
Lieke
Forum Members
Forum Members
Posts: 42
Joined: Thu Dec 06, 2007 12:47 pm
Location: The Netherlands

Re: Gallery - Show images from subgallery in same template

Post by Lieke »

Thanks a lot, I'll look into it. :)
Post Reply

Return to “Modules/Add-Ons”