The following patch adds two new special menu items:
: generates a link to the current page
: similar to a no-link but has a different class (column) and allows a title of for blank titles.
The link is being used on sites for parent menu items where clicking the parent just keeps you on the same page. This is needed for sites that have theming that requires the items to be a link but you still don't want to leave the page if it's clicked.
The link is used on our site for making multi-column drop-down menus. We use css to float the "column" class to the left so that each submenu that has the column class forms a new column. The title of the column is rendered at the top of the column unless is used for the title.
You'll see that this is pretty minor changes to the existing module. At some point it might be good to figure out how to support plugins with this module (e.g. ctools) so that it's easier to extend the features of this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | special_menu_add_current-1475370-2.x-6.patch | 2.34 KB | tirdadc |
| #4 | special_menu_add_current-1475370-2.x-4.patch | 2.08 KB | tirdadc |
| #3 | special_menu_add_current-1475370-2.x-3.patch | 2.11 KB | tirdadc |
| #1 | special_menu_add_current-1475370-1.patch | 2.03 KB | mpotter |
Comments
Comment #1
mpotter commentedHere is the patch:
Comment #2
gagarine commentedNot sure it's very useful but anyway it need a new patch.
Comment #3
tirdadc commentedThis is the patch re-rolled for 2.x
Comment #4
tirdadc commentedFixed trailing whitespace issues in the patch.
Comment #5
tirdadc commentedOK, so I think I skipped a few steps and didn't realize how much this had changed since 1.x. I'll post an updated patch ASAP.
Comment #6
tirdadc commentedThis version just adds support for the column functionality.