05 June 2024
Superfish, the module to create the menus you need
Superfish is a module capable of converting our basic menus into more elaborate menus, with more styles and more functionalities.
How can I get Superfish in my Drupal project?
To have Superfish available in our project, we first need to go to the Drupal page, search for the Superfish module, and download it. Additionally, we will need to download the libraries that will allow us to add predefined styles to our menus. If we download the libraries, we will need to place them in our project within /libraries, and the folder name inside libraries will be superfish. If we want our menus to be even better, we can install Easing. Easing incorporates a plugin to use jQuery functionalities in our menus. If we download Easing, we will need to save it in the /libraries folder, the name inside the libraries folder will be easing, and we will put everything inside.
Once everything is downloaded and the module is activated, when creating a menu or if we already have one created, we will not notice any change. But that's okay, because if we now go to block design and add a new one and search for the menu name, we will see that two results will now appear: the normal menu and the Superfish.
If we select the Superfish and edit it, we will observe a wide variety of functionalities. By default, it will be marked as Default, but we can use different pre-created models. An example would be Café, which creates the menu and submenus with a different background color. We can also define how many submenus we want to have, whether we want them to appear horizontally or vertically, and other functionalities that are better for you to discover on your own.
Share