I have created a menu on Drupal 8 and I want it to display like a collapsible menu. There should be an icon in front of parent links. A click on the icon should open the children's elements, and when it is clicked again, it should close them. However, with the normal meu module, everything is expanded, and I do not know how to make it collapsible. I have tried using jsTree menu as well but I have not been successful either. I wanted to know if there is a module that can do this? Please do note that I am not using Taxonomy to make this menu. Thanks in advance.

Comments

vm’s picture

Crew5896255’s picture

Thank you for your answer. However, can the module be used in the sidebar?

vm’s picture

yes. There may be other options in contrib worth looking at

Another option is to reverse engineer a theme that has its own, and move the feature into the theme you are using.

Crew5896255’s picture

Thanks I would surely try it. I have used the module hierarchical taxonomy menu for my taxonomy before. It has the functionality that I am searching for, but it does not work for content types like basic page and all, given that it is only for taxonomy. I would surely try the Superfish module though.