Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to Change Title?

Quote Reply
How to Change Title?
Hi,

Just wonder how I can change the Title of a page to customize it more?

right now it looks something like this: Link SQL: Home &Garden/Furniture/Armoires

How can I change the page Titles to look like this:

Home & Garden - Furniture - Armoires

1) I'd like to get rid of the "Link SQL" in front
2) change the / (slashes) into a hyphen

THanks!
Quote Reply
Re: [peego] How to Change Title? In reply to
Have a look in the <title> tag of the category.html Template (Build > Templates).

<title><%site_title%>: <%category_name%></title>

b.t.w you can change the site_title text in the Build > Template Globals page.

The best way to replace all forward slash's in the category_name tag is to setup a Global.

Code:
sub {
#category_name2
my $category_name = shift;
$category_name =~ s,/, - ,g;
return $category_name;
}

Under Build > Template Globals add the global above at the bottom called category_name2 and in your category.html Template add that tag between your title:

<title><%category_name2($category_name)%></title>

cheers,

Charlie



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Quote Reply
Re: [Chas-a] How to Change Title? In reply to
worked great.thanks!