{"action":"created","issue":{"url":"https://api.github.com/repos/yairEO/photobox/issues/115","repository_url":"https://api.github.com/repos/yairEO/photobox","labels_url":"https://api.github.com/repos/yairEO/photobox/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/yairEO/photobox/issues/115/comments","events_url":"https://api.github.com/repos/yairEO/photobox/issues/115/events","html_url":"https://github.com/yairEO/photobox/issues/115","id":140527426,"number":115,"title":"Rename pic ","user":{"login":"Contemp","id":17417696,"avatar_url":"https://avatars.githubusercontent.com/u/17417696?v=3","gravatar_id":"","url":"https://api.github.com/users/Contemp","html_url":"https://github.com/Contemp","followers_url":"https://api.github.com/users/Contemp/followers","following_url":"https://api.github.com/users/Contemp/following{/other_user}","gists_url":"https://api.github.com/users/Contemp/gists{/gist_id}","starred_url":"https://api.github.com/users/Contemp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Contemp/subscriptions","organizations_url":"https://api.github.com/users/Contemp/orgs","repos_url":"https://api.github.com/users/Contemp/repos","events_url":"https://api.github.com/users/Contemp/events{/privacy}","received_events_url":"https://api.github.com/users/Contemp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-13T20:43:00Z","updated_at":"2016-03-24T17:51:18Z","closed_at":"2016-03-21T22:18:56Z","body":"Hello !!!\r\nI like your plugin and I was trying to add both a button + an  input type=\"text\"  in data-pb-captionLink... But it doesnt work : \r\nWhen I click on my button, which shows correctly, I get a 403 : You don't have permission to access /myWeb/myFolder/<button id= on this server.\r\n\r\nCould you kindly help, please ?\r\nSame thing with the input, as soon as I start typing something in, I get redirected to a 403.\r\nThanks "},"comment":{"url":"https://api.github.com/repos/yairEO/photobox/issues/comments/200948010","html_url":"https://github.com/yairEO/photobox/issues/115#issuecomment-200948010","issue_url":"https://api.github.com/repos/yairEO/photobox/issues/115","id":200948010,"user":{"login":"yairEO","id":845031,"avatar_url":"https://avatars.githubusercontent.com/u/845031?v=3","gravatar_id":"","url":"https://api.github.com/users/yairEO","html_url":"https://github.com/yairEO","followers_url":"https://api.github.com/users/yairEO/followers","following_url":"https://api.github.com/users/yairEO/following{/other_user}","gists_url":"https://api.github.com/users/yairEO/gists{/gist_id}","starred_url":"https://api.github.com/users/yairEO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yairEO/subscriptions","organizations_url":"https://api.github.com/users/yairEO/orgs","repos_url":"https://api.github.com/users/yairEO/repos","events_url":"https://api.github.com/users/yairEO/events{/privacy}","received_events_url":"https://api.github.com/users/yairEO/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T17:51:18Z","updated_at":"2016-03-24T17:51:18Z","body":"why do you need an `id` for the captionTmpl elements? you can just put it on the `<a>` elements which hold the images of the gallery then you can use jQuery `closest('a')`  to get the anchor link and extract the `id` from it. That is the best way, and even better is to use parse the id from the image href itself if possible. "}}