GalleryView icon indicating copy to clipboard operation
GalleryView copied to clipboard

multiple galleries on one page

Open howster opened this issue 12 years ago • 2 comments

Hi, How do i add multiple galleries to one page please.

I thought changing id to class would do it i.e. $('.myGallery1').galleryView();

and

    should suffice? I can only get one to appear Thanks

howster avatar Jan 10 '13 13:01 howster

One function call can handle only single UL container. As in sample with ID's.

config js:

$('#galleryname1').galleryView({
...
});
$('#galleryname2').galleryView({
...
});
...

But don't forget about content... images html:

<ul id="galleryname1">
    <li><img src="http...
    <li><img src="http...
...
<ul id="galleryname2">
    <li><img src="http...
    <li><img src="http...
...

S-ed avatar Jan 10 '13 18:01 S-ed

Works but hard to use with a CMS like wordpress.

jswhisperer avatar Feb 26 '13 21:02 jswhisperer