Try our conversational search powered by Generative AI!

MVC - How do you create your submenus?


Can't find any good resources on how people have implemented page navigation (submenus) with several levels.

Would be very interesting to see how people have solved it. I'm struggling a bit in doing it the EPiServer way and would appreciate examples greatly!

Dec 11, 2013 21:38

Look in the Alloy MVC sample site. You will find a good solution in the partial view "SubNavigation". It uses an extension method (HTML-helper) that takes a delegate. The delegate are created in the view and passed to the helper method.

Dec 12, 2013 7:57

I was hoping for other ideas than the one in the Alloy sample site. That one feels a bit overengineered.

Dec 12, 2013 11:57

It's pretty simple to cover more complex cases. It depends on your requirements.

Dec 13, 2013 8:51
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.