Gossamer Forum
Home : Products : Gossamer Links : Discussions :

creating unique titles for span pages

Quote Reply
creating unique titles for span pages
I want to know how to create unique titles for the span pages. Every span page has the same title as the category index and I think it creates a problem in google. I would want to know how to create something like "Category links 50-99" "Category links 100-149" and so on or maybe "Category more3" as long as it is unique.
Quote Reply
Re: [drumstick] creating unique titles for span pages In reply to
Hi,

You could try something like this (at the top of category.html):

Code:
<%set page_on = $paging.current_page%>
<%set per_page = $paging.max_hits%>
<%set _start_number = $page_on * $per_page%>
<%set _start_number2 = $_start_number + 1%>
<%set start_number = $_start_number2 - $per_page%>
<%set end_number = $page_on * $per_page%>

..then in the <title></title> bit, you can use:

Code:
<%start_number%>-<%end_number%> - page <%page_on%>

This would give something like

1-25 - page 1
26-50 - page 2

Its a little complex - but I tested it, and seems to work ok :)

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] creating unique titles for span pages In reply to
I tried it but it didn't work for me for some reason.
Quote Reply
Re: [drumstick] creating unique titles for span pages In reply to
What did it do for you? (you got an example URL?)

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] creating unique titles for span pages In reply to
it shows up like "- - page" the <%set things don't seem to work for me.
Quote Reply
Re: [drumstick] creating unique titles for span pages In reply to
Can you PM/Email over Glinks admin details, and I'll take a look for you?

Also - which version are you using? Is it GLinks 3.x ? (if not - thats where your problem is, as the <%paging.xxx%> stuff isn't available in the older versions)

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] creating unique titles for span pages In reply to
I don't have 3.x it's 2.1. Is there another way?

Last edited by:

drumstick: Jul 8, 2008, 8:47 AM
Quote Reply
Re: [drumstick] creating unique titles for span pages In reply to
Hi,

Afraid not - you need GLinks 3.2 really (you can still upgrade to GLinks 3.2, and just keep using your current templates). If you would like me to do it, please PM me - and I can upgrade you for a fee Smile)

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!