Developer forum

Forum » Rapido and Wrap » Rapido - megamenu with dropdown for links with 1 level only

Rapido - megamenu with dropdown for links with 1 level only

Lara Arsénio
Lara Arsénio
Reply

Hello, I am trying to convert a custom DW page, Using Rapido 3.0 features only, or at least see what can be done without changing any templates.

One of the breakpoints is the Megamenu because some of the top level menus have only 1 level depth. These stay horizontally aligned, and it should be a dropdown. 

This Is not something that can gracefully be changed through CSS, because of the grid__col[3/4] classes that are in the submenu containers.

To get a dropdown effect for a single-level menu link, the changes need to be done in the BaseMegaMenu.xslt I made the changes to get the desired effect, but it would be great (and more compliant, to have this option in the Mega Menu Configuration settings:  to display menus that have only one level, as a dropdown, instead of horizontal.

I attached my changed BaseMegaMenu.xslt so you can get the picture.

* This tread had been added in Feature requests now copied here for being in Rapido context

Replies

 
Nicolai Pedersen
Nicolai Pedersen
Reply

Thank you - our team have already looked at your template. It will not make it for 3.1 which is due in 2 weeks, but we will implement this or something similar in a follow up release.

Thank you very much for the code and great input.

Have a nice weekend, Nicolai

 
Lara Arsénio
Lara Arsénio
Reply

Thank you Nicolai, it would be helpful and avoid painfull customizations indeed :-)

 

 

You must be logged in to post in the forum