volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

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!

#79261
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.

#79265
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.

#79278
Dec 12, 2013 11:57

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

#79312
Dec 13, 2013 8:51
error 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.