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 7 of 7

Thread: Can you change the title tag used in the Sitemap

  1. #1
    jwallwork is offline Member
    Join Date
    Sep 2008
    Posts
    38

    Default Can you change the title tag used in the Sitemap

    Our SEO group would like to use a different title tag from the for the Sitemap, but I can't see how to change it.

    Is it possible to change this from the default?

    We're running version 9.0.1.3 of Storefront for this customer.

    Thanks,

    John

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    Did you look in the XML package for the sitemap?
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    jwallwork is offline Member
    Join Date
    Sep 2008
    Posts
    38

    Default

    Quote Originally Posted by cjbarth View Post
    Did you look in the XML package for the sitemap?
    I've looked at the sitemap.xslt file and it does not have any code to manipulate the title tag.

  4. #4
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    sitemap2.aspx.vb has a line for setting the SectionTitle. By default it is using the sitemap.aspx.1 string in your string resources.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  5. #5
    jwallwork is offline Member
    Join Date
    Sep 2008
    Posts
    38

    Default

    Quote Originally Posted by cjbarth View Post
    sitemap2.aspx.vb has a line for setting the SectionTitle. By default it is using the sitemap.aspx.1 string in your string resources.

    The sectiontitle is not being used to set the page's title metatag, it is used to set the location area. We're trying to set the metatag field.

  6. #6
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    So then you have to set SEDescription, SEKeywords, and/or SETitle.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  7. #7
    jwallwork is offline Member
    Join Date
    Sep 2008
    Posts
    38

    Default

    Quote Originally Posted by cjbarth View Post
    So then you have to set SEDescription, SEKeywords, and/or SETitle.
    Turns out it's much simpler. After searching the .Net boards I found two methods:
    1. You can add a title attribute to the @page declaration and place the text in the attribute directly
    or.
    2. You can access the title attribute in the page_load event and set the text
    title= AppLogic.GetString("sitemap.aspx.1", SkinID, ThisCustomer.LocaleSetting);
    Last edited by jwallwork; 11-10-2010 at 07:21 AM.