How can I make any menus that may appear in a specific region automatically be a Nice Menus dropdown? I have over 200 menus, and the menus all appear in a specific region depending on the Workbench taxonomy. So only one menu at a time will appear in the top menu region. It needs to appear as a horizontal row of parent links, each with a dropdown. I guess you would call this a horizontal menu bar. I know Nice Menus has blocks, but all of my menus already have blocks, so if I use Nice Menus' blocks then I will be doubling the number of blocks in my block admin. Besides, I have over 200 menus, and Nice Menus does not accommodate that many. It would be nice if I could apply some sort of hook or theme function that automatically makes any menu in a specific region render as a Nice Menus dropdown. Please advise.
Thanks,
TheSasquatch
Comments
Comment #1
MrSasquatch commentedNever mind. I added Superfish JavaScript directly to my Omega sub-theme. The JavaScript for my sub-theme enables Superfish on any unordered list (ul) that appears within a certain block region. This is basically how you would use Superfish in a non-Drupal setting, so of course it works just fine for a Drupal theme, too. You just have to figure out the proper way to add JavaScript and CSS to a theme. This solution works perfectly for me. Now I can use the built-in capability of Drupal menus to add unlimited blocks restricted by URL pattern, they all show up in the same block region, and they all have Superfish applied, thanks to the JavaScript I added to the sub-theme.
I must say, though, that I feel Nice Menus and Superfish (the Drupal module, not the JavaScript library) should add this capability to their modules with good documentation. You shouldn't have to use the special "Nice Menus" blocks. There should be an option on a configuration page to specify a block region where all unordered lists will be rendered with Superfish. This would avoid JavaScript collisions with other modules that use Superfish, as it would be a more proper approach compared to hard-coding a sub-theme.