{"action":"created","issue":{"url":"https://api.github.com/repos/noelboss/featherlight/issues/271","repository_url":"https://api.github.com/repos/noelboss/featherlight","labels_url":"https://api.github.com/repos/noelboss/featherlight/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/noelboss/featherlight/issues/271/comments","events_url":"https://api.github.com/repos/noelboss/featherlight/issues/271/events","html_url":"https://github.com/noelboss/featherlight/issues/271","id":196147546,"number":271,"title":"Multiple galleries on one page without unique classes","user":{"login":"jacobraccuia","id":4655860,"avatar_url":"https://avatars.githubusercontent.com/u/4655860?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobraccuia","html_url":"https://github.com/jacobraccuia","followers_url":"https://api.github.com/users/jacobraccuia/followers","following_url":"https://api.github.com/users/jacobraccuia/following{/other_user}","gists_url":"https://api.github.com/users/jacobraccuia/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobraccuia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobraccuia/subscriptions","organizations_url":"https://api.github.com/users/jacobraccuia/orgs","repos_url":"https://api.github.com/users/jacobraccuia/repos","events_url":"https://api.github.com/users/jacobraccuia/events{/privacy}","received_events_url":"https://api.github.com/users/jacobraccuia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T20:27:24Z","updated_at":"2016-12-17T00:06:57Z","closed_at":"2016-12-17T00:06:57Z","body":"How can I call multiple galleries on a page without having to use unique classes?\r\n\r\nI tried\r\n```\r\n\r\nif($('.image-gallery').length) {\r\n\t\t$('.image-gallery').featherlightGallery({\r\n\t\t\tvariant: 'gal',\r\n\t\t\tfilter: $(this).find('.featured-image') \r\n\t\t});\r\n}\r\n\r\n```\r\n\r\nbut I don't think filter works the way I think it does.\r\n\r\nCurrently - it loads each item on the page in the same gallery lightbox.  I want a unique lightbox gallery for each parent \".image-gallery\".  In otherwords, clicking the arrows in the first lightbox gallery should not show me photos from the second one.\r\n\r\n```\r\n<div class=\"image-gallery\">\r\n     <div class=\"featured-image\" data-featherlight=\"http://imgurl\"><img /></div>\r\n     <div class=\"featured-image\" data-featherlight=\"http://imgurl\"><img /></div>\r\n</div>\r\n\r\n<div class=\"image-gallery\">\r\n     <div class=\"featured-image\" data-featherlight=\"http://imgurl\"><img /></div>\r\n     <div class=\"featured-image\" data-featherlight=\"http://imgurl\"><img /></div>\r\n</div>\r\n\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/noelboss/featherlight/issues/comments/267725902","html_url":"https://github.com/noelboss/featherlight/issues/271#issuecomment-267725902","issue_url":"https://api.github.com/repos/noelboss/featherlight/issues/271","id":267725902,"user":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T00:06:57Z","updated_at":"2016-12-17T00:06:57Z","body":"Hi!\r\n\r\nMy name is Marc-André and **I'd like your help**. I'm not the original author but I liked the project so much I started contributing more and more; now I'm the (only) maintainer.\r\n\r\n#### How you can help\r\n\r\nI'd like **you to help me** in keeping the issues of this project organized. In particular, I'd very much like questions to be asked on [Stack Overflow](http://stackoverflow.com)(reasons just down below) and I think **you could help**.\r\n\r\nTo serve that goal, I wrote that questions should be asked on [Stack Overflow](http://stackoverflow.com) in the [READ ME](https://github.com/noelboss/featherlight#questions) file. Still, some people asked questions here.\r\n\r\nI requested the same in the [Contributing Guidelines](https://github.com/noelboss/featherlight/blob/master/.github/CONTRIBUTING.md). Even though GitHub has a paragraph saying \"Please review the guidelines for contributing to this repository.\" that shows up whenever someone creates an issue, some people still asked questions here.\r\n\r\nFinally, GitHub allowed us to write a template issue, in which I wrote\r\n> This issue tracker is not the place for questions. If you want to ask how to do\r\n> something, or to understand why something isn't working the way you expect it to, use\r\n> http://stackoverflow.com/questions/ask .\r\n> Provide working code, starting from http://jsfiddle.net/JNsu6/15/.\r\n> We monitor the tag `featherlight.js`.\r\n\r\nStill, some people like you delete this text and ask a question here. So my question is: **why did you feel it was the right thing to do**? What could I possibly have done so that this basic wish was respected? I must admit that I feel disrespected whenever someone completely ignores my requests. I understand that most developers don't feel the urge to help by digging in, inspecting the code and contributing back with great bug reports or pull requests, but it saddens me when people show little care and disregard maintainer wishes.\r\n\r\nIt would help me a lot if you helped me find a solution so that questions are asked on [Stack Overflow](http://stackoverflow.com).\r\n\r\n#### Why StackOverflow?\r\n\r\nI feel that [StackOverflow](http://stackoverflow.com) is much better organized for questions and answers than GitHub. Not too surprising, that's exactly what it was designed for!\r\n\r\nIt has a much better interface to find similar questions, so there's a better chance a question and its answers will help someone else.\r\n\r\nI monitor the tag for this project, so I normally will read the question. Sometimes, someone else has already answered the question, which is awesome for whoever wrote the question and for me! That never happens with GitHub issues, btw.\r\n\r\nOtherwise I can answer it, especially if it shows what the requester has tried, and has a working example. If something is not clear, there's the comment section, that insure that the discussion doesn't have to be re-read by others that only want the answer.\r\n\r\nIf the question is badly asked, for example if it has no [working example](http://jsfiddle.net/JNsu6/15/), I can also ignore it and downvote it. Maybe someone will answer it, either way, I don't have an opened issue being stale in GitHub forever.\r\n\r\nIndeed, I try as best as I can to keep the list of open GitHub issues down to a minimum. Things there should mostly be things that need to be fixed one way or another. Having a bunch of half baked questions in there would not help at all.\r\n\r\nI'm hoping you will reply with good hints on how to achieve this goal. Thanks."}}
{"actor":{"display_login":"marcandre"}}