Good day!
I have a task to rewrite site from classic asp to .net mvc. All ok, but I have a trouble with menu generation.
Please, follow redstore.com.ua (yes, it’s on-line sex shop :)), on the left side you will find the menu, it’s works great. When you click on it, the sub menu will fall down with redirecting to category page.
The database table of menu looks like this:
id – menu id | int
m_name – menu title | string
m_rew – url name of item | string
m_parent – the id of parent directory | int
m_type – type of menu item (1 – the higts level, 2 – middle level (red menu item on site), 3 – submenu level (last level)) | int
I need solution to generate exactly the same functionality menu (what should be in model, controller and view). Can anybody help me?
Thanks!
There are 2 good site which will help you to generate the kind of menus you need.
The menus is just a combination of
Combine these 3 methods to generate the menus you need.