I just found this excellent piece of code.
I have a requirement that i think cant be solved as it is right now. Pleade correct me if i am wrong.
I want to generate a Breadcrumb that looks something like this.
Home > Products
Home > Products > Product A
So for so good, but now i want child nodes under Product A, like so:
Home -> Products -> Product A -> Edit
This works excellent except the link for "Product A" doesn't include the Id route data in the url. I want the url to be http://site.com/Product/View/<id> but it just becomes http://site.com/Product/View/
Am i overlooking something? Or am i thinking fundamentally wrong about this thing? Suggestions and help is welcome.
My definition looks something like this:
<mvcSiteMapNode title="Products" controller="Prodcut" action="Index" isDynamic="true" dynamicParameters="*">
<mvcSiteMapNode action="View" isDynamic="true" dynamicParameters="id">
<mvcSiteMapNode action="Edit" isDynamic="true" dynamicParameters="id" />