Useful for when you need the a menu to be split into columns.

What this patch does is add a configuration option to split the menu a certain number of times, then the top-level menu items will be divided into that number of menus when the menu is rendered.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarlShea’s picture

Title: Split a top-level menu an arbitrary number of times » Split a top-level menu an arbitrary number of times (patch included)
jday’s picture

this would be great for D7 too

Scott Robertson’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
FileSize
4.44 KB

I've attached a Drupal 7 patch for this functionality.

I removed the "split" checkbox from the original patch and just kept the textbox element on the menu block admin form, which defaults to a value of 1. This removes the need to have any additional JavaScript for hiding/showing the textbox, as well as some additional PHP logic. I don't feel that removing the checkbox has any affect on usability.

Melissamcewen’s picture

Issue summary: View changes
FileSize
3.94 KB

Thanks Scott, I am using your code and have updated the patch to function with the latest dev version