horace
2007-12-15 03:21:00 UTC
Hi,
In my website, it has a menu and a breadcrumb trail. I am using ASP.NET
"Menu" & "SiteMapPath" controls to do these. My "Web.sitemap" is as follows:
<siteMap>
<siteMapNode title="Dummy" url="Default.aspx">
<siteMapNode title="Menu 1" url="Page1.aspx">
<siteMapNode title="Menu 1a" url="Page1a.aspx" />
<siteMapNode title="Menu 1b" url="Page1b.aspx" />
</siteMapNode>
<siteMapNode title="Menu 2" url="Page2.aspx">
<siteMapNode title="Menu 2a" url="Page2a.aspx" />
<siteMapNode title="Menu 2b" url="Page2b.aspx" />
</siteMapNode>
<siteMapNode title="Menu 3" url="Page3.aspx">
<siteMapNode title="Menu 3a" url="Page3a.aspx" />
<siteMapNode title="Menu 3b" url="Page3b.aspx" />
</siteMapNode>
</siteMapNode>
</siteMap>
And my SiteMapDataSource is set as follows:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="false" />
The reason i set ShowStartingNode="false" is that i don't want to show the
"Dummy" memu item.
Everything worked fine with the menu. However, problem occurred when i
worked with a Sitemappath:
Dummy > Menu 1 > Menu 1a
How can i make the "Dummy" siteMapNode invisible by changing those
properties of the "SiteMapPath" control? Pls kindly advise.
_____
In fact, my ultimate goal is just want to make my menu and sitemappath look
like this:
[Menu]
Menu 1
- Menu 1a
- Menu 1b
Menu 2
- Menu 2a
- Menu 2b
Menu 3
- Menu 3a
- Menu 3b
[SiteMapPath]
Menu 1 > Menu 1a
Menu 2 > Menu 2a
...
...
So any suggestion is welcome such as doing some tricks on the "Web.sitemap"
file and any other else. Thank you in advance.
B.Rgds,
horace
In my website, it has a menu and a breadcrumb trail. I am using ASP.NET
"Menu" & "SiteMapPath" controls to do these. My "Web.sitemap" is as follows:
<siteMap>
<siteMapNode title="Dummy" url="Default.aspx">
<siteMapNode title="Menu 1" url="Page1.aspx">
<siteMapNode title="Menu 1a" url="Page1a.aspx" />
<siteMapNode title="Menu 1b" url="Page1b.aspx" />
</siteMapNode>
<siteMapNode title="Menu 2" url="Page2.aspx">
<siteMapNode title="Menu 2a" url="Page2a.aspx" />
<siteMapNode title="Menu 2b" url="Page2b.aspx" />
</siteMapNode>
<siteMapNode title="Menu 3" url="Page3.aspx">
<siteMapNode title="Menu 3a" url="Page3a.aspx" />
<siteMapNode title="Menu 3b" url="Page3b.aspx" />
</siteMapNode>
</siteMapNode>
</siteMap>
And my SiteMapDataSource is set as follows:
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="false" />
The reason i set ShowStartingNode="false" is that i don't want to show the
"Dummy" memu item.
Everything worked fine with the menu. However, problem occurred when i
worked with a Sitemappath:
Dummy > Menu 1 > Menu 1a
How can i make the "Dummy" siteMapNode invisible by changing those
properties of the "SiteMapPath" control? Pls kindly advise.
_____
In fact, my ultimate goal is just want to make my menu and sitemappath look
like this:
[Menu]
Menu 1
- Menu 1a
- Menu 1b
Menu 2
- Menu 2a
- Menu 2b
Menu 3
- Menu 3a
- Menu 3b
[SiteMapPath]
Menu 1 > Menu 1a
Menu 2 > Menu 2a
...
...
So any suggestion is welcome such as doing some tricks on the "Web.sitemap"
file and any other else. Thank you in advance.
B.Rgds,
horace