yii2-gallery-widget icon indicating copy to clipboard operation
yii2-gallery-widget copied to clipboard

multiple galleries issue

Open sahifedp opened this issue 7 years ago • 2 comments

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).

sahifedp avatar Jun 12 '17 07:06 sahifedp

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

tonydspaniard avatar Sep 09 '17 22:09 tonydspaniard

@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?

Routhgen avatar Oct 10 '19 06:10 Routhgen