Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Using 'category' name in Detailed page Title meta tag

Quote Reply
Using 'category' name in Detailed page Title meta tag
Hello

I'm currently using <%cat_name($ID)%> to insert the 'category' name into the <title> tag for the Detailed pages on my site.

My site is location based and the listings are added to each relevant category, with Detailed page for each category, so a listing will appear in more than 1 category and have more than 1 Detailed page.

Example:

Detailed/Scotland/Edinburgh/link474.html <title><%Title%> Scotland </title>
Detailed/Scotland/link474.html <title><%Title%> Scotland </title>

When using <%cat_name($ID)%> in the <title> tag, the title meta tags are the same for both Detailed pages

This is being picked up in my Google account, within webmaster tools site diagnostics HTML suggestions as pages with duplicate Title tags

How can I configure this so that each Detailed page shows the separate 'category' name within the <title> tag?

Something like this:

Detailed/Scotland/link474.html <title><%Title%> Scotland </title>
Detailed/Scotland/Edinburgh/link474.html <title><%Title%> Edinburgh </title>

Thanks
Colin Thompson
Quote Reply
Re: [colintho] Using 'category' name in Detailed page Title meta tag In reply to
Unfortunatly, I don't think there is a way you can do that. The problem is due to the CatLinks.CategoryID, as you have more than one entry in the glinks_CatLinks table - its just grabbing the first one (the one that its showing you)

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!
Quote Reply
Re: [Andy] Using 'category' name in Detailed page Title meta tag In reply to
Andy

would this work from the ULTRA globals plugin?

Or will this still be affected by CatLinks.CategoryID?

<%Plugins::ULTRAGlobals::Custom_Full_Name($Full_Name,':','1')%>

regards

Colin
Colin Thompson
Quote Reply
Re: [colintho] Using 'category' name in Detailed page Title meta tag In reply to
Still the same issue. As far as I know, there is no work around (unless GT have any suggestions, which I've missed)

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!
Quote Reply
Re: [Andy] Using 'category' name in Detailed page Title meta tag In reply to
On first look at the core code, still not a chance in dynamic mode.

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Using 'category' name in Detailed page Title meta tag In reply to
Yeah, thats what I found when trying to do it before :(

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!
Quote Reply
Re: [Andy] Using 'category' name in Detailed page Title meta tag In reply to
In code there is a comment for this that says the GLinks has no way for now to find from which category users comes to build proper next/prev url and because of this, they do it only for static pages where GLinks is aware for which category it building pages.

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins
Quote Reply
Re: [eupos] Using 'category' name in Detailed page Title meta tag In reply to
Yeah, that makes sense.

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!
Quote Reply
Re: [Andy] Using 'category' name in Detailed page Title meta tag In reply to
Hm, I just tried to insert <%cat_name($ID)%> in my title tag on detailed.html,
but it shows only cat_name is no code reference !
Did I miss anything?

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Using 'category' name in Detailed page Title meta tag In reply to
He has a global called cat_name =)

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!