locked
Web.sitemap RRS feed

  • Question

  • User-863835478 posted

    Please kindly advise, with code examples,  how to apply globalization/localization to Web.sitemap.

    Thanks a lot.

    Wednesday, November 25, 2009 10:52 PM

Answers

  • User541108374 posted

    Hi,

    first hit on google gave me this link: How to: Localize Site-Map Data.

    I suggest that you spend more time on the MSDN site. There's a wealth of information, articles, how to articles to be found there. It's a great resource created by Microsoft itself for .NET developers.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 25, 2009 11:40 PM
  • User1577733570 posted

    Hi,

    To enable site map localization by adding enableLocalization="true" to the site map file, for example: the Web.sitemap file.

    e.g.-

    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"
        enableLocalization="true">

    Change the value of the property that you want to localize to a resource string in siteMapNode using this format: “$resources:ClassName,KeyName,DefaultValue”. 

    e.g.-

    <siteMapNode url="Default.aspx"
      title="$resources:SiteMapLocalizations,HomePageTitle"
      description="$resources:SiteMapLocalizations,HomePageDescription">

    Then generate a resource file with the name SiteMapLocalizations.resx as a default resource file and

    SiteMapLocalizations.hi.resx and so on.

    Please refer below some useful links-

    http://www.codeproject.com/KB/aspnet/AspNetLocalization.aspx#sitemap

    http://cid-635c8e2bf4822d7c.skydrive.live.com/self.aspx/.Public/UserDbSiteMapProvider.zip

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 26, 2009 12:55 AM

All replies

  • User541108374 posted

    Hi,

    first hit on google gave me this link: How to: Localize Site-Map Data.

    I suggest that you spend more time on the MSDN site. There's a wealth of information, articles, how to articles to be found there. It's a great resource created by Microsoft itself for .NET developers.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, November 25, 2009 11:40 PM
  • User1577733570 posted

    Hi,

    To enable site map localization by adding enableLocalization="true" to the site map file, for example: the Web.sitemap file.

    e.g.-

    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0"
        enableLocalization="true">

    Change the value of the property that you want to localize to a resource string in siteMapNode using this format: “$resources:ClassName,KeyName,DefaultValue”. 

    e.g.-

    <siteMapNode url="Default.aspx"
      title="$resources:SiteMapLocalizations,HomePageTitle"
      description="$resources:SiteMapLocalizations,HomePageDescription">

    Then generate a resource file with the name SiteMapLocalizations.resx as a default resource file and

    SiteMapLocalizations.hi.resx and so on.

    Please refer below some useful links-

    http://www.codeproject.com/KB/aspnet/AspNetLocalization.aspx#sitemap

    http://cid-635c8e2bf4822d7c.skydrive.live.com/self.aspx/.Public/UserDbSiteMapProvider.zip

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 26, 2009 12:55 AM