Is it possible to implement Navigation Menu and Submenu using Umbraco related links - by manually adding menus and submenus and display it on front end ? I tried it to implement by using umbraco related links but i can only implement Menus with that, What if I want to display submenus at front end. Please help me to resolve if possible with umbraco related links.
Thanks for your reply. Actually my requirement is to use umbraco related links to implement menu and sub menu, that's why i'm using related links instead of node hierarchy. actually requirement is like user can manually add and remove menu and submenu that user wanted to display, Not the ones that we have used normally in node hierarchy. I mean the menu and submenu will differ that we define in node hierarchy and the ones that we give in umbraco related links.
You could have a "GLOBAL SETTINGS" repo in your Content section. With a Node called "Main Menu".
Create a Node Type called "Menu Item", and give it some options like "Content Picker" e.t.c. Update the Permssions, so "Menu Item" can be a child node of it self, and of "Main Menu"
Now, go to your content tree. And create the Menu structure under your Main Menu node.
Your users can then create the menu structure they require.
I have implemented this using Paul suggestion.
Basically, you have to create a tree structure in back-office and on front end you check if a node has children then you create the submenu. Just to be aware that you can have more children levels.
Umbraco Related Links
Hello,
Is it possible to implement Navigation Menu and Submenu using Umbraco related links - by manually adding menus and submenus and display it on front end ? I tried it to implement by using umbraco related links but i can only implement Menus with that, What if I want to display submenus at front end. Please help me to resolve if possible with umbraco related links.
Thanks
Dharmesh
Hi Dharmesh
Better to use node hierarchy for navigation instead of related link. What is your scenario ?
Thanks Manish
Hi Manish,
Thanks for your reply. Actually my requirement is to use umbraco related links to implement menu and sub menu, that's why i'm using related links instead of node hierarchy. actually requirement is like user can manually add and remove menu and submenu that user wanted to display, Not the ones that we have used normally in node hierarchy. I mean the menu and submenu will differ that we define in node hierarchy and the ones that we give in umbraco related links.
Thanks
Dharmesh
Hi
My question is that how you would choose sub menu under a new menu using related link?
Thanks
Why not re-think the solution.
You could have a "GLOBAL SETTINGS" repo in your Content section. With a Node called "Main Menu".
Create a Node Type called "Menu Item", and give it some options like "Content Picker" e.t.c. Update the Permssions, so "Menu Item" can be a child node of it self, and of "Main Menu"
Now, go to your content tree. And create the Menu structure under your Main Menu node.
Your users can then create the menu structure they require.
Hi Dharmesh,
I have implemented this using Paul suggestion. Basically, you have to create a tree structure in back-office and on front end you check if a node has children then you create the submenu. Just to be aware that you can have more children levels.
Hope it helps.
Florin
Hi,
Thank you so much guys for helping me.
Archetype is really useful for building hierarchical menus: https://code101.net/links-in-umbraco-are-broken-but-alternatives-exist-1fe89aae2093
With Archetype, you can create a menu item, and each menu item can have children which are in turn menu items.
is working on a reply...