Is there a way to use both the sidebar and the top bar navigation places at the same time ?
How can this be achieved in v3 to use both location with different items in each places ?
4 Replies
There are no controls for that at the present time. You would have to rework the layout templates/components to identify which nav to apply to. Right now it's treated as one or the other.
Thank you, whats the best way to propose this functionality to the team ?
I don’t know that it’s feasible. If you need both you can apply a custom navigation to the top bar with render hooks. But I don’t see any way to programmatically determine with the Navigation classes what should be sidebar and what should be topbar.
Would have been interesting if we could have attached nav items and nav groups to a nav location and render them accordingly. This would have helped a lot in cases where for example you want to show a different list of sidebar nav items depending on the active top bar nav item. Hope it makes sense. I'll pursue the render hooks to create something custom for my case atm. Thank you for your input @awcodes