Breadcrumb for same action from a different View
Closed this issue · 2 comments
Hello, here is the order I’m trying to display in my breadcrumb.
Home
Blog
Tech
Sign in
Home
Blog
Science
Sign in
My navigation.xml has the following code
<Children>
<NavNode key ="Science" controller="Blog" action="Science" text="Science" preservedRouteParameters="id" componentVisibility="breadcrumbs,childtree">
<Children>
<NavNode key ="ModalPopScience" controller="Blog" action="ModalPopUp" text="Log in" />
</Children>
</NavNode>
<NavNode key ="Tech" controller="Blog" action="Tech" text="Tech" preservedRouteParameters="id" componentVisibility="breadcrumbs,childtree,parenttree">
<Children>
<NavNode key ="ModalPop" controller="Blog" action="ModalPopUp" text="Log in" componentVisibility="breadcrumbs" />
</Children>
<Children>
<NavNode key ="BlogWebApp" controller="Blog" action="WebAppTech" text="" componentVisibility="breadcrumbs,childtree" />
</Children>
</NavNode>
</Children>
</NavNode>
The order which is displayed right now is
Home / Blog / Science / Log in
And
Home/ Blog / Science/ Log in
Can I have the breadcrumb to display as shown below?
Home / Blog / Tech / Log in
And
Home/ Blog / Science/ Log in
If so, what would be the simplest way to achieve that?
Any help would be greatly appreciated. Thank you!
You could have more than one menu node in the xml that goes to the same controller action, the keys must be unique though.
See also Adding extra breadcrumbs and Adjusting Menu Items per request
@bagamru I haven't heard back from you on this so I'm closing the issue.