Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

<title><%category_name%></title>

Quote Reply
<title><%category_name%></title>
Is there any way to get this to show the current category and not "category/categoryname"

Also, is there anyway of dong a minus word with this tag like <p><%category_name -hotels%></title></p>

Appreciative of any help

Andy
Quote Reply
Re: [chapelier] <title><%category_name%></title> In reply to
From an SEO standpoint, I would also like to be able to change the "/" for the title tag "category/categoryname"

I would like to change it to:

"category - categoryname"
or
"category categoryname"

Any suggestions?
Quote Reply
Re: [Soren] <title><%category_name%></title> In reply to
In the page.php script, or the normal static / page.cgi script? This is the PHP forum =)

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] <title><%category_name%></title> In reply to
My mistake page.cgi script Unimpressed
Quote Reply
Re: [Soren] <title><%category_name%></title> In reply to
Hi,

Try this global:

Code:
sub {
my @split = split /\//, $_[0];
return join(" - " , @split);
}

..and call with:

<%global_name($Full_Name)%>

That should do the trick 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!
Quote Reply
Re: [Andy] <title><%category_name%></title> In reply to
Perfect! Thanks Andy