Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Custom Page Title for non-entity pages

  1. #1
    cloudsift is offline Junior Member
    Join Date
    Jul 2009
    Posts
    18

    Default Custom Page Title for non-entity pages

    Is it possible to change the page title of the non-entity pages? I have not had any luck doing so.

    Example: There is a setting SE_MetaTitle that has a value of "Joe Schmoe Co.". This is the title that is used for pages such as wishlist.aspx which I would like to append as "Wishlist - Joe Schmoe Co." and so on.

    I go into the wishlist.aspx page and try adding a <title> tag, but it does not override the generic title. I tried using the Title attribute in the page directive without luck as well.

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, yes, this is possible. It would only take this little tweaking

    Directory: {root}/App_Code/
    Class: SkinBase
    Method: Render

    Change this line:
    Code:
    m_SETitle =  AppLogic.AppConfig("SE_MetaTitle");
    To:
    Code:
    m_SETitle = Regex.Replace(CommonLogic.GetThisPageName(false),".aspx",": ") +  AppLogic.AppConfig("SE_MetaTitle");
    However, GetThisPageName is entirely dependent on the web form's filename.