I created a menu styles sandbox

https://drupal.org/sandbox/rerooting/2078717

It doesn't work with menu blocks yet. I was able to get around the annoying phptemplate issue that forces one to use individual theme functions for each menu to add ul classes by building a custom menu function!

It's very handy, and works quite well. It will eventually be used to support multiple/custom menu styles (even with radix I need custom menu styles) and menu block, but the 1.x version provides a simple, bootstrap ready ctools pane for configuring custom menus using the nav styles! I'll add a navbar one here shortly.

Comments

shadcn’s picture

This is looking good. I'll test it tonight and come up with some feedback.

rerooting’s picture

Unfortunately, the way this is implemented *may* interfere with menu_block, unless i am able to manipulate the menu tree either before or after menu block calls it's tree building function. Also, I'm about to push another pane for doing navbars - it turns out a seperate function would probably be the easiest way to implement these.

I could also make the UI more intuitive. The way it's set up is kinda lazy. The reason being is that selecting different nav styles and options properly will require ajax forms. If folks want to throw some patches at that I'd much appreciate it.

I would appreciate it if someone could double check on access and other important menu things. I'm pretty sure the links are already built properly, however i want to ensure that everything is hunky dory with the somewhat unconventional approach that was taken here.

I might jump ahead with the 2.x branch so i can make it more pluggable and use a more object oriented approach. I'd prefer that, when the project is promoted, a stable 2.x release is available for folks to use in production and with makefiles/distributions, since a 1.x to 2.x upgrade path will be almost impossible, and the 2.x version will be able to have a broader base of support since we can recruit other css framework folks to help out on the effort.

I may just pull the stable 1.x version into a submodule for radix_ui for the time being as well, so that it can be brought into an existing, full release, stable project and so folks can use it immediately when full project status is needed (i.e. OA2 and Panopoly).

shadcn’s picture

rerooting’s picture

I can't follow the link!

shadcn’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Marking this issue as "works as designed" for now. Feel free to reopen.