{"action":"created","issue":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/625","labels_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/625/comments","events_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/625/events","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/625","id":64782450,"number":625,"title":"FancyBox w/ CollectionFS","user":{"login":"jhmacdon","id":7463936,"avatar_url":"https://avatars.githubusercontent.com/u/7463936?v=3","gravatar_id":"","url":"https://api.github.com/users/jhmacdon","html_url":"https://github.com/jhmacdon","followers_url":"https://api.github.com/users/jhmacdon/followers","following_url":"https://api.github.com/users/jhmacdon/following{/other_user}","gists_url":"https://api.github.com/users/jhmacdon/gists{/gist_id}","starred_url":"https://api.github.com/users/jhmacdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhmacdon/subscriptions","organizations_url":"https://api.github.com/users/jhmacdon/orgs","repos_url":"https://api.github.com/users/jhmacdon/repos","events_url":"https://api.github.com/users/jhmacdon/events{/privacy}","received_events_url":"https://api.github.com/users/jhmacdon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T15:18:08Z","updated_at":"2015-04-08T08:22:30Z","closed_at":null,"body":"So when trying to use <code>this.url store='thumb'</code> and <code>this.url</code>, I wasn't able to get it to work with FancyBox. When you click on the thumb, it shows fancybox loading and then redirects to the href instead of displaying the image?\r\n\r\nI tested this with normal images and everything seems to work well, just CollectionFS images cause this to happen. \r\n\r\nOh, I should add that i am using GridFS, so I suppose this could be an Iron Router issue as well. "},"comment":{"url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/comments/90839623","html_url":"https://github.com/CollectionFS/Meteor-CollectionFS/issues/625#issuecomment-90839623","issue_url":"https://api.github.com/repos/CollectionFS/Meteor-CollectionFS/issues/625","id":90839623,"user":{"login":"slam310","id":693613,"avatar_url":"https://avatars.githubusercontent.com/u/693613?v=3","gravatar_id":"","url":"https://api.github.com/users/slam310","html_url":"https://github.com/slam310","followers_url":"https://api.github.com/users/slam310/followers","following_url":"https://api.github.com/users/slam310/following{/other_user}","gists_url":"https://api.github.com/users/slam310/gists{/gist_id}","starred_url":"https://api.github.com/users/slam310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slam310/subscriptions","organizations_url":"https://api.github.com/users/slam310/orgs","repos_url":"https://api.github.com/users/slam310/repos","events_url":"https://api.github.com/users/slam310/events{/privacy}","received_events_url":"https://api.github.com/users/slam310/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T08:22:30Z","updated_at":"2015-04-08T08:22:30Z","body":"This note an Iron Router issue  and :\r\n````html\r\n... this.url store='your_thumb_name_store' ...\r\n````\r\nIs the right setting, but for making the #Fancybox#  works  , you may need to put this piece of code somewhere on your client folder to get it \"rendered\" correctly :\r\n````javascript\r\nTemplate.YourTemplateName.rendered = function() {\r\n  $('a[rel=YourRelTagName]').fancybox({\r\n/* some fancyBox options here */});\r\n}\r\n````\r\nAnd in your template , your link should looks like this : \r\n\r\n````html\r\n<a href=\"{{this.url store=\"your_file_name_store\" auth=false}}\" rel=\"YourRelTagName\">\r\n    <img src=\"{{this.url store='your_thumb_name_store'}}\" />\r\n</a>\r\n````\r\nBTW : You should have also correlty import all the *FancyBox* depencies library in the right , of course ^^ \r\n"}}