Page Title

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Page Title

Post by kastnerd » Wed Jan 21, 2009 11:56 am

I was wondering, Dose anyone put there Store name as part of the title of ever page and item?

Like this messageboard puts AbleCommerce in front of every title. I was thinking putting store name at the end of every title.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Page Title

Post by mazhar » Wed Jan 21, 2009 12:03 pm

You can try it by changing the page titles through programming. For example create the following method in the App_Code/PageHelper.cs class. Then call it where ever you want to change the title.

Code: Select all

public static string GetTitle(string text) 
    {
        string title = "{0}-{1}";
        return string.Format(title, Token.Instance.Store.Name, text);
    }
For example if you want to change the product details page title the it could be something like

Code: Select all

Page.Title = PageHelper.GetTitle(_Product.Name);

Post Reply