Answer the question
In order to leave comments, you need to log in
How to implement a two level menu with href="#" on the first level?
Good afternoon, comrades. How can you implement a two-level menu without the first HC (so that the first level is non-clickable, i.e. href="#")? Out of the box, the menu is tied to a link. If you change the link at the first HC, the menu items of the second level are not loaded. Any thoughts?
So far, only changing the first-level link attribute with JS after DOM construction comes to mind, but I would like to know if this method is anal. Thank you!
Answer the question
In order to leave comments, you need to log in
Everything is easy to do in the component templateif IS_PARENT echo "#"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question