Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2011 at 07:42 UTC
Updated:
31 Aug 2018 at 19:48 UTC
Jump to comment: Most recent
Comments
Comment #1
Draven_Caine commentedThis would be very useful for me if a menu item can be blank/no link.
Comment #2
egil commentedHi 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.
Comment #3
Draven_Caine commentedPersoanlly 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
Comment #4
egil commentedDraven, 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!
Comment #5
shadcn commentedHi. Please have a look at http://drupal.org/project/special_menu_items. :)
Comment #6
jthorson commentedegil,
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.
Comment #7
misc commented@egil has been contacted to ask if the application is abandoned.
http://drupal.org/node/894256
Comment #8
misc commentedComment #9
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #10
avpaderno