Page 1 of 1
Gallery open directly on list
Posted: Mon Feb 20, 2017 9:07 am
by MZTech
Hi,
I have one question: I have a gallery list with 10 galleries. I want to open Lightbox directly when clicking on the thumbnail. I dont want to open the subgallery. I want to directly open full gallery in Lightbox from directory list of galleries ( {if $image->isdir} -> directly open subgallery in Lightbox)
I hope I make sense.
Re: Gallery open directly on list
Posted: Mon Feb 20, 2017 11:02 am
by Rolf
Re: Gallery open directly on list
Posted: Mon Feb 20, 2017 11:12 am
by MZTech
I have looked at them before the first post, couldn't find anything useful.
Re: Gallery open directly on list
Posted: Mon Feb 20, 2017 1:40 pm
by hgpdesign
I want exactly the same thing... couldn't find a solution either. Must be simple to make though. I'll give it a try and report back when/if I succeeded.
Regards, Ron Hoenson
Re: Gallery open directly on list
Posted: Mon Feb 20, 2017 5:59 pm
by velden
It is possible but you need to have good understanding about both the Gallery module and Lightbox.
https://tinyurl.com/zlz33f9 is made with Gallery (not LightBox)
Re: Gallery open directly on list
Posted: Thu Feb 23, 2017 8:20 pm
by MZTech
Thanks, i see. How do I list all images of subgallery when i use "isdir"?
Re: Gallery open directly on list
Posted: Thu Feb 23, 2017 8:30 pm
by velden
Calling gallery again from inside the template, but with another dir.
Few years ago I posted this:
viewtopic.php?p=312793#p312793
Note it's a few years old, so maybe I wasn't this smart at that time

Re: Gallery open directly on list
Posted: Thu Feb 23, 2017 8:38 pm
by MZTech
Please correct the link to that post.
Re: Gallery open directly on list
Posted: Fri Feb 24, 2017 9:49 am
by MZTech
I have managed to do it. Thank you for the information.