Trying to get menus sorted out nicely has been feeling like pushing a square peg into a round hole.
I have the requirement that menus change depending on which member is logged in and what roles they have been assigned to.
I also have the requirement that this look nice on a phone. ( the user interface doesn’t have to be the same )
My current solution;
Bolting on buttons and boxes, swapping labels and links and showing/hiding sort of works but; it is ugly, the show/hide behavior is inconsistent, and it feels like trying to drive in nails with a wrench.
I have looked at the mega-menu solutions and they are prettier than a button solution but do not really seem to address the need for dynamic menus any better than hiding and showing buttons and boxes, and swapping labels and links.
I am sure this is an extremely common use case.
Any thoughts on an appropriate approach leveraging the WIX platform would be really helpful.
My only thought right now is that an html frame with some fancy CSS might work.
Most common cases when building custom menus are using buttons as menu, show() and hide() functionality, building mega menu, using strips that you stock on each other and then conditionally show one of them or building completely different pages to redirect your users to them based on your condition.
You can also indeed try using html embed.
It’s quite a few of options so you can try and see which one suits you the best.
Thanks, I tried adding button and boxes on the page but my dropdown menu tends to be pretty stick ( you can’t count on onleave firing ).
I will be posting a working dynamic menu with iframe/js/css/html in the next day or two. I got it working tonight and just have to wire it in now. I will strip it down and post it here.
I have yet to find out whether it is faster/slower/causes other problems but the responsiveness of the menu itself is much nicer.
I can show/hide my elements and post the id back to the parent so I know what action to take.
Please open your own post, with your own good described issue.
If needed you can link this post to elaborate further information, related to your issue.
There are tons of differen possibilities how to generate a → MENU!