When I want to display a list of 10 or 20 or more photos I need adding the line
<a href="images/image-1.jpg" rel="lightbox[group]">image #1</a>
10 or 20 or more times in a page and its too much work for me!

If all of the 10 or 20 or more photos are stored in the same directory (an only these photos in this directory) is there a way to avoid adding a ligne for each one of the photos.

Of course I can do this using a gallery but the issue is that when I leave lightbox display it drives me back to the gallery while I would like to the page.

Any idea? Thank in advance for help.

Comments

stella’s picture

Hi,

There's no way to do this using the Lightbox module. Perhaps check out some of the gallery modules. I think Brilliant Gallery does it based on directory and also has lightbox support.

Cheers,
Stella

gilbertdelyon’s picture

Thanks Stella,

I am coming from Joomla. Of course Drupal as many advantages but in Joomla there is very efficient plugin (Easy Extended Gallery) that allows this. You only have to add inside the page something like {gallery}directoryname{/gallery}, and that'all, even if there are hundreds of images inside the directory. I'll test Brilliant Gallery and let you know the result.

Cheers,

Gilbert

stella’s picture

Status: Active » Closed (won't fix)

Perhaps also check out IMCE/IMCE Gallery and Acidfree Albums. There's lots of available modules that display images in different ways, so I'm sure you'll find one that suits you. Don't forget that you can also override the default layouts in your theme.

Unfortunately, what you're suggesting is outside the remit for the lightbox2 module, so marking as "won't fix". Best of luck!

Cheers,
Stella

gilbertdelyon’s picture

I tested Brilliant Gallery. It's not the kind of module I am looking for. It's only one more block to be located somewhere in left or right sidebar, not a tool that would help me to include images in articles.
In addition I had not succes in using it with lightbox and the site of the developper (vacilando) is out of order!

I'll have a look to IMCE and Acidfree and let you know the result.

Cheers

Gilbert

stella’s picture

There is the ability to show brilliant gallery in a node/page. The details are on http://quidne.vacilando.org/bg. The site seems to be working fine for me. Perhaps it was down temporarily.

Full details are on that site, but in any case to do it, I think you need to enable the brilliant gallery filter (can do this under Post Settings - admin/settings/filters iirc). Then in your brilliant gallery files directory, create a subdirectory, e.g. "myalbum" and put all your files in there. Then in your node's body just put e.g. [bg|myalbum]. The full syntax is [bg|path/to/your/gallery/folder/without/wrapping/slashes|columncountoverride|widthoverride], e.g. for a 4 column layout with each image having a 100px width, you'd have [bg|myalbum|4|100]

If the layout isn't as you would like, I'm sure you can customise it in your theme. Ask the brilliant gallery maintainer for help on this if you need to.

There was a bug in lightbox2 for brilliant gallery integration. You can use the patch at #184962 to fix this or use the latest dev release (it is stable).

Cheers,
Stella

gilbertdelyon’s picture

All right!

The web site of developper is now also running well for me.
Thanks for your precious help.

Cheers and Cheers

Gilbert