Some galleries on 1 page is not working

Phoca Gallery - image gallery extension
Heian
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Mar 2012, 19:01

Some galleries on 1 page is not working

Post by Heian »

Hello!
When I try make two or more galleries on one page (but in different materials), plugins of popup windows (Highslide JS and JAK) come into conflict with each other, images not zoom and galleries (except for the first) not works. I use only Highslide or Jak because only these plugins can display image description.

After analyze source code of my page I saw one interesting thing: Phoca Gallery creates that block and puts it into the head section.

Code: Select all

var optgjaksModPhocaGalleryRIM2da7c0ac = {galleryClassName: 'lightBox',
   ...options and configuration...
}}
This is a configuration of the gallery, but just for one. But I use three galleries. See next:

Code: Select all

var dataJakJsModPhocaGalleryRIM2da7c0ac = [{alt: 'alt text',description: 'Description is here ',small:'some url'
   ...urls to images...
}}

var dataJakJsModPhocaGalleryRIM1ebf31da = [{alt: 'more images',description:' '
   ...urls to images...
}}

var dataJakJsModPhocaGalleryRIM6f84f46f = [{alt: 'third gallery',description:' '
  ...urls to images...
}}
As we can see, Phoca Gallery creates one and only configuration block (even I use three galleries) and on the block with image's lists for each gallery. Postfix of the configuration block is RIM2da7c0ac (var optgjaksModPhocaGalleryRIM2da7c0ac), one of the blocks of image's list have very same postfix - RIM2da7c0ac (var dataJakJsModPhocaGalleryRIM2da7c0ac).

I think what that problem occurred because two galleries out of three not configured. Where I can edit Phoca's code to fix it, and how I can fix it? Help me please in that problem.
Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Some galleries on 1 page is not working

Post by Jan »

Hi, this is random image module code, there different IDs are created. In component, only one instance is working.

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