Closed javierxbrenes1 closed 4 years ago
Hey, I don't want to make the root mvcSiteMapNode visible for users, how can I accomplish this?
for example, this is my mvc.sitemap
<?xml version="1.0" encoding="utf-8" ?> <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"> <mvcSiteMapNode title="Administration" controller="CommonSettings" action="Index"> <mvcSiteMapNode title="Users" controller="User" action="Index"> <mvcSiteMapNode title="Add User" controller="User" action="Add"/> </mvcSiteMapNode> </mvcSiteMapNode> <mvcSiteMapNode title="About" controller="Home" action="About"/> <mvcSiteMapNode title="Roles" controller="Role" action="Index"> <mvcSiteMapNode title="Add Role" controller="Role" action="Add"/> <mvcSiteMapNode title="Role Details" controller="Role" action="RoleDetails"/> <mvcSiteMapNode title="Edit Role" controller="Role" action="Edit"/> </mvcSiteMapNode> </mvcSiteMapNode> </mvcSiteMap>
when I run my app and go to addUser page, I want to get just User > Add User for my breadcrumb instead of Administration > User > Add User. Same for Roles or About pages, I don't want the root path on my BreadCrumb.
How can I do that?
answer here https://github.com/maartenba/MvcSiteMapProvider/issues/400
Hey, I don't want to make the root mvcSiteMapNode visible for users, how can I accomplish this?
for example, this is my mvc.sitemap
when I run my app and go to addUser page, I want to get just User > Add User for my breadcrumb instead of Administration > User > Add User. Same for Roles or About pages, I don't want the root path on my BreadCrumb.
How can I do that?