Anyone have an example of how to create a breadcrumb trail using the latest MVC3 release and razor syntax?
You should be able to achieve this by using the MVC SiteMap Provider: http://mvcsitemap.codeplex.com/. It contains features to create breadcrumb trails, and is documented fairly well (and you can always grab the code and modify it to do exactly what you want.)
To get the MvcSitemapProvider working do the following:
In your .sitemap
file change:
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-2.0" />
to:
<mvcSiteMap xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-3.0" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With