This module allows for the creation of placeholder items in the menu system that links to nothing (i.e. the has tag - #). This is useful when creating a menu structure where some menu items are simple placeholders to convey the structure of a website.

Comments

Draven_Caine’s picture

This would be very useful for me if a menu item can be blank/no link.

egil’s picture

Hi Draven,

So should it output <a href="" ... >Menu item name</a> or <span>Menu item name</span>?

If it is a matter of styling, you can always target empty links with css class "empty" or even with CSS attribute selectors (e.g. a[href="#"]). See http://www.w3schools.com/css/css_attribute_selectors.asp for more info on those.

Draven_Caine’s picture

Persoanlly i think it would be helpful for an empty menu item to not be clickable, mouse-over-able or anything. Kinda like if you mouse-over any text or graphic that is not a link.

There are other modules that do empty menu items but they use a false link to do this which can lead to confusion for the end user. "when I mouse-over the menu item my cursor changes like its a link but nothing happens, is it broken?"

So in the end having the menu item not do anything would be best .. for me.

Hope that helps,
Draven

egil’s picture

Draven, I think this is a matter of personal taste. You can certainly style you way out of having the mouse cursor change when hovering over a "empty" link etc., and having the "empty links" as links can make styling a menu tree easier. That said, I am all for flexibility, so I think this should be configurable from the admin section (e.g. empty menu items as span or anchors).

That said, I am neck deep in projects at university right now, which unfortunately have to take precedence, but I will be back ASAP and add the functionality.

Thanks for taking the time to comment by the way. Love the input!

shadcn’s picture

Hi. Please have a look at http://drupal.org/project/special_menu_items. :)

jthorson’s picture

Status: Needs review » Needs work

egil,

As mentioned in #5, there are a few solutions which already enable this functionality, with Special Menu Items and Menu editor both coming to mind (and I know I've reviewed at least one other menu placeholder module in the last 3 months) ... can you help us understand how 'Menu Empty' compares to other existing Drupal menu placeholder solutions?

I've seen forum issues talking about the use of 'http://#', and suggestions that it causes errors in certain versions of Firefox ... haven't seen this myself, but you may want to make sure you test on multiple browsers. Example: http://drupal.org/node/51783#comment-4921474

You can remove the files[] entry from your .info file ... this is only needed for files containing object-oriented class or interface declarations. http://drupal.org/node/542202

I'd also recommend limiting the text in your README file to 80 columns wide for readability.

misc’s picture

@egil has been contacted to ask if the application is abandoned.

After ten weeks with a status of needs work: the applicant may be contacted by a reviewer to determine whether the application was indeed abandoned. The action taken by the reviewer should be documented in the project application issue.

http://drupal.org/node/894256

misc’s picture

Status: Needs work » Postponed
klausi’s picture

Status: Postponed » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

avpaderno’s picture

Title: Menu Empty » [D7] Menu Empty
Issue summary: View changes