dynamic sitemap problem
Now the problem is when at the root of the node ~/home/default.aspx, it cannot show the breadcrumb and the title name.
However, all the other page works fine which display the correct breadcrumb navigation and the current title name.
And in the web.sitemap, I list the sitemap and include the code
<siteMapNode provider="LessonsSiteMapProvider" />
and in the app_code/SiteMapProvider.cs
i define the
rootNode = new SiteMapNode(this,key,"~/home/default.aspx","Lessons");
and in the web.config
<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
<providers>
<clear />
<add name="XmlSiteMapProvider"
description="Default SiteMap Provider"
type="System.Web.XmlSiteMapProvider"
siteMapFile="web.sitemap" />
<add name="LessonsSiteMapProvider"
description="Lessons SiteMap Provider"
type="LessonsSiteMapProvider"
siteMapFile="lessons.sitemap" />
</providers>
</siteMap>
Thanks
|