locked
Localizing the SiteMap RRS feed

  • Question

  • User-1659879118 posted
    Could anybody help???? How could i localize the following sitemap

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap>
        <siteMapNode url="default.aspx" title="Home"  description="">
            <siteMapNode url="~/" title="Home"  roles="*"/>
            <siteMapNode url="PostAd.aspx" title="Post an Ad"  roles="*"/>
            <siteMapNode url="MyAds.aspx" title="My Ads &amp; Profile" roles="*">
                <siteMapNode url="MyProfile.aspx" title="My Profile" roles="*" />
                <siteMapNode url="Login.aspx" title="Login" roles="*" />
                <siteMapNode url="Register.aspx" title="Create an Account" roles="*" />
            </siteMapNode>
            </siteMapNode>
    </siteMap>

    I tried to add resources files with the two languages to the global resources folder and did the following but it is still not working

    <siteMap>
        <siteMapNode url="default.aspx" title="$Resources: Resource, Home"  description="">
            <siteMapNode url="~/" title="$Resources: Resource, Home"  roles="*"/>
            <siteMapNode url="PostAd.aspx" title="$Resources: Resource, Post_an_Ad"  roles="*"/>
            <siteMapNode url="MyAds.aspx" title="$Resources: Resource, My_Ads_Profile" roles="*">
                <siteMapNode url="MyProfile.aspx" title="$Resources: Resource, My_Profile" roles="*" />
                <siteMapNode url="Login.aspx" title="$Resources: Resource, Login" roles="*" />
                <siteMapNode url="Register.aspx" title="$Resources: Resource, Create_Account" roles="*" />
            </siteMapNode>
    </siteMapNode>
    </siteMap>

    Please note that the following are in the web.config

    <siteMap defaultProvider="RoleEnabled_AspNetXmlSiteMapProvider" enabled="true">
                <providers>
                    <clear/>
                    <add name="RoleEnabled_AspNetXmlSiteMapProvider" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="web.sitemap" securityTrimmingEnabled="true"/>
                </providers>
            </siteMap>
    Sunday, April 1, 2007 8:05 AM

Answers

  • User-1659879118 posted

    Thanks for your kind and quick reply

    I found the answer in in the following link 

    http://msdn.microsoft.com/en-us/library/ms178427(vs.80).aspx

    very grateful [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 1, 2007 9:15 AM

All replies

  • User-319574463 posted
    Look at http://forums.asp.net/thread/1636976.aspx . Also http://forums.asp.net/thread/1636976.aspx. Guy Smith-Ferrier's book is very good on the subject.
    Sunday, April 1, 2007 8:36 AM
  • User-1659879118 posted

    Thanks for your kind and quick reply

    I found the answer in in the following link 

    http://msdn.microsoft.com/en-us/library/ms178427(vs.80).aspx

    very grateful [:D]

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 1, 2007 9:15 AM