Changing Title Tags
Posted: Tue Jan 06, 2009 10:07 am
I'd like to customize my title tags. I've read the multitude of posts about different ways to bind the meta tags, restructuring the <head> code layout etc. But none of them are quite what I want. (The meta tag rewrite viewtopic.php?f=42&t=9073 also resulted in duplicate title tags for me - which I'm sure will set off all kinds of alarms at Google).
What I want for my title tag is this:
"ProductName | Category Name (deepest level, not all - so whatever subcategory it is in) | StoreName"
This helps to get a few extra keywords in the title, is useful for Google Search Results and doesn't harm your ranking because it isn't gaming the system, it is letting people know where they are in the site etc.
Even for catalog pages it should be "CategoryName | StoreName"
Is this possible? I see in Product3.aspx where it is setting the title:
But I have no idea about how to add the rest of the text to those strings or even how to properly reference the category.
Thanks,
Dappy
What I want for my title tag is this:
"ProductName | Category Name (deepest level, not all - so whatever subcategory it is in) | StoreName"
This helps to get a few extra keywords in the title, is useful for Google Search Results and doesn't harm your ranking because it isn't gaming the system, it is letting people know where they are in the site etc.
Even for catalog pages it should be "CategoryName | StoreName"
Is this possible? I see in Product3.aspx where it is setting the title:
Code: Select all
protected void Page_Load(object sender, EventArgs e)
{
if (_Product != null)
{
if (!Page.IsPostBack)
//REGISTER THE PAGEVIEW
CommerceBuilder.Services.AbleCommerceHttpModule.RegisterCatalogNode(_Product.ProductId, CatalogNodeType.Product);
PageHelper.BindMetaTags(this, _Product);
Page.Title = _Product.Name;
}
}
Thanks,
Dappy