SiteMap issue

Mar 28, 2009 at 2:44 PM
While using WCSF sitemap provider, we meet a problem. For example, the Search.aspx  is displayed in Menu control, and it also contains a add button to redirect to Create.aspx. If I add the Search.aspx and Create.aspx to site map provider, the Create.aspx will also be displayed in Menu control. If I don't add the Create.aspx to site map provider, the SiteMapPath control will not display a link for Create.aspx while redirecting to Create.aspx. How can I do?
Mar 30, 2009 at 4:44 PM
You can search the discussions here. I used to answer this problem. My approach was:
1. Add Create.aspx to the provider. then it is supposed to show on menu and site map path.
2. When creating the site node for Create.aspx, add a feature to the dictionary of the node like node["HideInMenu"] = true.
3. Subscribe to menu binding event, in the binding event handler, using the feature added in step 2 to find the node, remove the node from the menu. It won't show up in menu.
As the node is still in the site map, it will show up in site map path.