Create a custom menu from the code #17564
Unanswered
alysonsm-dev
asked this question in
Q&A
Replies: 1 comment 4 replies
-
@alysonsm-dev the link that you refer to is used for admin menus, there is an You could create a menu by extending {% shape "menu", alias: "alias:main-menu" %} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a custom menu that is entirely defined in the code. The idea is to use Liquid to generate a new custom menu where all levels are specified within the code. Something like:
Story
-- Add New Story
-- List Stories
The custom module must include Text or DisplayText, a URL, and a CSS class to add an icon in front of the menu option.
Does anyone know how to do this? I can't find any reference on how to implement it.
Actually, I found something in the TheAdmin theme, but INavigationProvider is only called in the admin area.
https://docs.orchardcore.net/en/latest/guides/add-admin-menu/
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions