Page 1 of 1

Get URL from Gallery

Posted: Fri Apr 18, 2014 1:51 pm
by atdesign
Hello,

I'm trying to implement Facebook comments with the latest Gallery module but am having trouble grabbing the full sub gallery url to use for the data-href tag so that comments are tagged to each individual sub gallery.

For the news module I was able to use the canonical url but it doesn't work with Gallery, nor does {$content_obj->GetURL()} They both return the gallery index url.

Any suggestions?
Thanks.

Re: Get URL from Gallery

Posted: Fri Apr 18, 2014 2:52 pm
by velden
use {get_template_vars} in your template and look if there's an appropriate variable for you.

Re: Get URL from Gallery

Posted: Fri Apr 18, 2014 2:58 pm
by atdesign
Just gave that a try but I only see a parent url. No current page url unfortunately.
velden wrote:use {get_template_vars} in your template and look if there's an appropriate variable for you.