Mulitple gallery image modules with highslide on 1 page

Phoca Gallery - image gallery extension
quayfee
Phoca Member
Phoca Member
Posts: 14
Joined: 13 Jul 2011, 19:15

Mulitple gallery image modules with highslide on 1 page

Post by quayfee »

Hi I've been creating a site that uses multiple gallery image modules (from different categories) on a single page. The modules show correctly, however if using highslide, there are a couple of issues:

1. You can only use one set of parameters (i.e. setting one to show a thumbnail slideshow will override any previously set parameters)
2. The slideshow will load the thumbnails (and main images) from both instances, rather than those in each module.

I suspect that this is something to do with the module template having a fixed id for the surrounding div tag and that changing this to something dynamic would sove the issue. However I'm not sure if this would affect anything else.

I'm comfortable creating overrides or editing the default template, however don't want to go diving in without some idea of what else might be affect.

My suggestion for the best solution would be to add a new field to the params form that allowed the admin to set an ID for each instance of the module. I'd be happy to look at doing this myself if it would be helpful. Any guidance from the grat guys in the phoca team would be really helpful, though. :)

Not sure if this qualifies as a bug, but apologies if it does and I've posted it on the wrong place.

Cheers

Keith
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mulitple gallery image modules with highslide on 1 page

Post by Jan »

Hi, which modules you exactly using.

Some modules are created to be only one instance on the site with unique id.

Some gets different ids (every instance is unique - so e.g. slideshow takes only images frome one instance)

Some (because of javascript limiatations) cannot be identified as unique, so slideshow can take all images from all instances

Jan
If you find Phoca extensions useful, please support the project
quayfee
Phoca Member
Phoca Member
Posts: 14
Joined: 13 Jul 2011, 19:15

Re: Mulitple gallery image modules with highslide on 1 page

Post by quayfee »

Hi Jan,

I'm using the standard Phoca Gallery Images module from the latest verison of the gallery for J1.7, the issue only manifests iteself when you try to create two instances on the same page, both using Highslide JS for the modal boxes.

I haven't had a chance to look at highslide to see whether it will take a unique ID for each instance. For this particular project I was able to solve the issue by using the standard model popup for one and highslide for the other, but it would be nice to be able to be consistent.
Cheers

Keith
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Mulitple gallery image modules with highslide on 1 page

Post by Jan »

Hi, the Phoca Gallery Image Module is the case of one instance module. There are some issues regarding using some javascript libraries more times, e.g. it is based on Id element which can be only one on the site, etc. :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply