Get URL from Gallery

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
atdesign
Forum Members
Forum Members
Posts: 38
Joined: Fri Feb 24, 2012 12:57 pm

Get URL from Gallery

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Get URL from Gallery

Post by velden »

use {get_template_vars} in your template and look if there's an appropriate variable for you.
atdesign
Forum Members
Forum Members
Posts: 38
Joined: Fri Feb 24, 2012 12:57 pm

Re: Get URL from Gallery

Post 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.
Locked

Return to “Modules/Add-Ons”