Closed (fixed)
Project:
Special menu items
Version:
6.x-1.5
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 May 2010 at 03:11 UTC
Updated:
2 Feb 2020 at 09:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jbenjamin commentedI'm in the same situation. Anyone had any luck getting this to work?
Comment #2
johnvb commentedSame problem here. Clicking on the special menu item on an IPhone just reloads the page rather than dropping the menu down (even though it is not a link). The other non-special menu items still work.
Comment #3
chrislabeard commentedsubscribe
Comment #4
spencerfromsc commentedIn case it helps, the module is working fine in Acquia Marina right now, but I am having the same issue as the original post (it doesn't reload the page as in #3) in the Safari browser on the iphone. Wish I could be helpful enough to throw a patch your way, but I'd probably do more harm than good at this point.
Comment #5
jfox77 commentedsubscribe
Comment #6
mherchelI was able to get this working by navigating to admin/settings/special_menu_items, and inserting the following into the "HTML TAG FOR NOLINK" Field:
Comment #7
grasmash commentedawesome. I had tried using the anchor tag but hadn't thought to add the href="#". Thanks!
Comment #8
jdanthinne commentedNice solution!
But if you use that, changes must be done in the code (in function render_menu_item).
Replace all
$closingtag=str_replace('<','</',$tag);by$closingtag = preg_replace('/<(\w).*>/', '</$1>', $tag);.This way, the closing tag is
</a>, and not</a href="#">.Comment #9
gagarine commentedClose as a duplicate.
We should solve #1221294: option to use <a href="#"> for "nolink" items to not break other modules and it will certainly works.
Comment #10
3rdvalve commentedIn addition to the above we've added a class to our stylesheets to override the pointer cursor.
In the css:
a.no-link {
cursor:text;
}
Comment #11
asad.hasan commentedComment #12
asad.hasan commentedStick this code in to your themes javascript file. It will allow users to view the menu on one tap, and go to the url on the menu on a second tap if done with in one second. Has been Tested and multiple levels on IOS and Android. Thanks.
Comment #13
hallswah commentedWill this work for drupal 7 as well?
also could you please tell me exactly which js file i should be adding this to - i'm using the danland theme which has a scripts folder that contains superfish.js, jquery.cycle.all.js and hoverIntent.js
Thank you in advance
Comment #14
asad.hasan commentedI have not tested this on Drupal 7. Superfish is not the same thing as Nice Menus, Superfish is touch compatible from my experience.
As far as the Javascript file is concerned, you should be able to throw it in any javascript file within your theme, however, I recommend creating a separate Javascript file in your themes javascript folder, and adding it to the .info file provided with your theme or basetheme.
Thank you
Comment #16
Pierre__ commentedSpecial menu items (7.x-2.1) is still not working on Ipad and iphones.
I tried using instead of but this does not work.
Is there a CSS trick to let it working or do we have to use javascript?
Thanks