Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

multiple galleries issue #18

Open
sahifedp opened this issue Jun 12, 2017 · 2 comments
Open

multiple galleries issue #18

sahifedp opened this issue Jun 12, 2017 · 2 comments
Assignees

Comments

@sahifedp
Copy link

Hi
I used "yii2-gallery-widget" in a page several times.
that is create many id="blueimp-gallery" div (renderTemplate function ran several time) That was conflict in gallery show.
I added this code in first of renderTemplate function (in /src/Gallery.php) and problem solved:
static $isRendered = false;
if ($isRendered) {
return '';
}
please solve this issue (by this way or better way).

@tonydspaniard
Copy link
Member

have you configured the id for the different widgets you display? Can you show me the entire code?

@Routhgen
Copy link

Routhgen commented Oct 10, 2019

@sahifedp Thanks for hotfix. It just works!

The problem is about hardcoded ID & Class #gallery so its impossible to make two galeires e.g. for 2 image categories together. Its overwritten and make this effect of 2 times transparency layer.

Please can anyone implement dynamic generation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants