Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [iplay] how to insert rel="canonical" link with current URL

Quote Reply
Re: [iplay] how to insert rel="canonical" link with current URL In reply to
Hi,

Ah ok. In that case, you will probably need a global.

get_canonical
Code:
sub {
return $CFG->{build_root_url} . "/" . $DB->table('Category')->as_url( $_[0] ) . "/";
}

Call with:

Code:
<%get_canonical($Full_Name)%>

Untested, but should work fine

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread how to insert rel="canonical" link with current URL iplay 10902 Jul 26, 2015, 1:37 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10717 Jul 26, 2015, 11:48 PM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 10721 Jul 27, 2015, 3:22 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10711 Jul 27, 2015, 3:28 AM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 10702 Jul 27, 2015, 3:58 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
iplay 10700 Jul 27, 2015, 4:01 AM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 10691 Jul 27, 2015, 5:36 AM
Thread Re: [Andy] how to insert rel="canonical" link with current URL
iplay 8975 Jan 11, 2018, 7:46 PM
Thread Re: [iplay] how to insert rel="canonical" link with current URL
Andy 8967 Jan 11, 2018, 11:18 PM
Post Re: [Andy] how to insert rel="canonical" link with current URL
iplay 8931 Jan 14, 2018, 12:56 AM