Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With the release of Drupal 7 just two weeks away, I was wondering if there are any plans for a Drupal 7 version of the Special menu items module?
Comment | File | Size | Author |
---|---|---|---|
#70 | mainmenu.png | 16.99 KB | kevinwalsh |
#70 | nice_menus.png | 13.19 KB | kevinwalsh |
#47 | gagarine-special_menu_items-6.x-1.5-17-g76a0a96.zip | 10.32 KB | gagarine |
#47 | Screen shot 2011-06-24 at 8.24.25 PM.png | 129.92 KB | gagarine |
#15 | 1007054-15-port-special_menu_items.patch | 15.72 KB | webflo |
Comments
Comment #1
jacques.van.nes CreditAttribution: jacques.van.nes commentedNow drupal 7 is released i am in an upgrade process.
Unfortunately there is nu 7 release (yet) available.
Does anyone know when the version 7 release of special menu items will be available, or is there any alternative project for this?
Thanks in advance
Jacques
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedsubscribe
Comment #3
webflo CreditAttribution: webflo commentedHere is a Drupal 7 version. There is no upgrade path from d6 to d7 is not included. Please test and review.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedYou can also include this script in your .info file:
Then add this to your custom style sheet:
a.nolink {cursor:default;}
… and finally, add the class "nolink" to your special menu items.It's not an ideal solution, as it requires client side scripting, but I don't know how to do this in PHP. If anyone does, how about posting the solution here?
Note: tested only in Chrome browser.
Comment #5
webflo CreditAttribution: webflo commentedThis is not related to this patch/issue.
Comment #6
webflo CreditAttribution: webflo commentedComment #7
hrpr.com CreditAttribution: hrpr.com commentedTested patch and works for me after a couple of tweaks, one to speciaL_menu_item.info file and one to my theme's css file.
I deleted the following from bottom of special_menu_item.info file:
And added this in it's place:
In my test theme, which is a modified version of Tarski theme, changed following in the style.css file:
li.nolink-li to li.nolink
See it in action on News item on top horizontal menu of my test site.
Comment #8
Juc1 CreditAttribution: Juc1 commentedsub
Comment #9
carlovdb CreditAttribution: carlovdb commentedsubscribe
Comment #10
n3uronick CreditAttribution: n3uronick commentedI would also propose to change the line 32 to:
$items['admin/config/system/special_menu_items'] = array(
Comment #11
webflo CreditAttribution: webflo commentedThx for the reviews. I rerolled the patch. I change the menu path to 'admin/config/system/special_menu_items' as proposed by neuronick in #10.
Comment #12
enkara CreditAttribution: enkara commentedI can't get it to work.
It displays this message error:
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'pastwoman_menu_link' not found or invalid function name en special_menu_items_menu_link() (línea 81 de /home/pastwoman/web/sites/default/modules/special_menu_items/special_menu_items.module).
Also, I've debugged a little bit and althoug I have 'nolink' items, it does not enter to this if:
It seems like is getting only the shorcuts menu!
Thank you for your help
Comment #13
bryancasler CreditAttribution: bryancasler commentedsubscribe
Comment #14
ralva83638 CreditAttribution: ralva83638 commentedsubscribe
Comment #15
webflo CreditAttribution: webflo commentedRerolled the patch. My github repository: https://github.com/webflo/special_menu_items
Comment #16
enkara CreditAttribution: enkara commentedThank you, but I'm still getting the warning and it's not working for me :(
Comment #17
rob49152 CreditAttribution: rob49152 commentedI've been trying my hand at adding a 'self' functionality to this module with little luck. Granted I've put in a whole 2 hours in total.
Basically the idea is that if the menu path is set to 'self' it would replace the tag with
<a href="#">
and end with</a>
And don't you think these should actually be
<nolink>, <separator>
and<self>
to be consistent with drupals formatting and to avoid conflict issues if for some strange reason someone actually had a page with the path being 'nolink', 'separator' or 'self'?Comment #18
webflo CreditAttribution: webflo commentedFull Ack
Comment #19
bryancasler CreditAttribution: bryancasler commentedMade my day
Comment #20
dgastudio CreditAttribution: dgastudio commentedsub
Comment #21
willybase CreditAttribution: willybase commentedsubscribe
Comment #22
kruser CreditAttribution: kruser commentedsub
Comment #23
Jiri Volf CreditAttribution: Jiri Volf commentedsubscribing
Comment #24
ivadenis CreditAttribution: ivadenis commentedhow to install this module on Drupal 7?
Comment #25
bittertruth CreditAttribution: bittertruth commentedmenu shows up.. but I can't get the formatting. it's plain text. Any idea??
Comment #26
ranpan CreditAttribution: ranpan commentedOk I installed the drupal 7 version. Now my parent links that i have set to "nolink" it gos to mysite.com/nolink page that says "This is a dummy page used for placeholder and separator menu items. You should not be able to see this page " What did I miss? Anyone else have this problem? I'm not sure why it actually shows the link and goes to that page.
Comment #27
DartDev CreditAttribution: DartDev commentedAfter uploading module from https://github.com/webflo/special_menu_items it tells: contains a version of clippy that is not compatible with Drupal 7.x. on modules page.
Comment #28
clashar CreditAttribution: clashar commentedsub
Comment #29
Juc1 CreditAttribution: Juc1 commentedHi all,
Is there any news on a D7 version or if not can anyone please suggest an alternative D7 module for a placeholder menu item?
Thank you
Comment #30
ckrinaI installed the (https://github.com/webflo/special_menu_items) correctly, and it works fine in my D7 site.
The problem I have is that I want to use it with the DHTML menu module to expand the child menu items when I hover the parent-nolink item, and it doesn't work: it is not a link so it doesn't act as it.
Any idea? Thank you
Comment #31
Ortaga CreditAttribution: Ortaga commentedThis is a interesting option for D7:
http://drupal.org/project/menu_firstchild
Comment #32
taoofbean CreditAttribution: taoofbean commentedThanks so much for making the D7 version of this module.
Note: for those of you trying to install this from Github, you likely need to individually download the individual files for the module into a folder of the same name because the predefined Downloads for the module on Github are all for the 6.x version.
Comment #33
Juc1 CreditAttribution: Juc1 commented@ taoofbean is the D7 version ok? why isn't it uploaded here?
Comment #34
ckrinaThanks Ortaga,
I finally used the DHTML (http://drupal.org/project/dhtml_menu) module and used its option "None". It was exactly what I was looking for.
Comment #35
BenK CreditAttribution: BenK commentedSubscribing
Comment #36
bryancasler CreditAttribution: bryancasler commentedsubscribe
Comment #37
gagarine CreditAttribution: gagarine commented@webflo https://github.com/webflo/special_menu_items/pull/3 What do you think?
Comment #38
straszko CreditAttribution: straszko commentedIs 7.0 release hanging in the air? :)
Regards
Comment #39
gagarine CreditAttribution: gagarine commentedyeah a D7 version is ready and better than the D6. I asked Servit to commit or to give me the accesses to the repository but he didn't answer for the moment.
Comment #40
geek-merlinfyi: in my case #1195336: Megamenu-7.x does not play well with special_menu_items module
Comment #41
gagarine CreditAttribution: gagarine commentedYep but before than we can commit on the d.o I will not try to fix every issue here... I think this issue (porting the module to D7) is done, now we need a commit and a 7.x branch.
Axel you can try my version https://github.com/gagarine/special_menu_items perhaps it will solve the issue (don't forget to run update.php and backup before you run it.... it's still beta).
Comment #42
webankit CreditAttribution: webankit commented+1 waiting for dev
Comment #43
kporras07 CreditAttribution: kporras07 commentedThis module version is giving me some problems; because the page tries to link to a page named ; i need to solve this; could yo help me?
I'm a newbie with drupal
Comment #44
jive01 CreditAttribution: jive01 commentedI installed the module successfully (the version on github) however my output when using
<nolink>
Outputs the following:
So the options to configure your own html tag in the configurations does not work, nor is the menu item wrapped by the default span tag that it is supposed to be in...
Comment #45
jive01 CreditAttribution: jive01 commentedI realize that this is happening because my menu is a custom menu! There needs to be a way so that the nolinks and separator works for custom menus as well...
Comment #46
straszko CreditAttribution: straszko commentedHello @jive01. Could you please tell me which files did you use to install special_menu_items module? Are you using Drupal 7.2?
I can't get it work on my installation (i get message "Current version is not compatible...")
Thanks.
Comment #47
gagarine CreditAttribution: gagarine commented@jive01 I can't reproduce your bug. and is not critical.
Ok every body has a hard time to download from github apparently... I also uploaded a zip with my last version for D7 module attached to this comment.
EDIT: don't forget to clear your cache, run update.php, ...
Comment #48
gagarine CreditAttribution: gagarine commentedFYI #1187464: Special menu items appears to be abandoned
Comment #49
straszko CreditAttribution: straszko commentedThanks @gagarine. Now i could enable the module. Thanks again. Although i don't think it's working properly for me... I linked one of my menu item to "nolink", and when i click on this item it redirects me to "page not found".. (btw before i did that i've cleared the cache) Am i doing something wrong?
Cheers
ps. hope this project will be continued.. and your work appreciated!
Thanks for sharing!
Comment #50
gagarine CreditAttribution: gagarine commented@straszko Good. For the D7 version, I change "nolink" to "<nolink>" so be sure to use "<nolink>". This is to keep consistency with the core and other modules.
I made an upgrade path for people coming from the D6. If you update from D6 to D7, you absolutely need to run http://yoursite.com/update.php and follow the instruction.
Comment #51
straszko CreditAttribution: straszko commented@gagarine Sorry for not being too precise earlier.. of course i used "nolink" within the "< >" bracket, and unfortunately (as i described ) i was redirected to "page not found"..
Thanks for your help.
Comment #52
webankit CreditAttribution: webankit commentedI tried to use it with dhtml menu & the children were suppressed any help?
Comment #53
vdeparday CreditAttribution: vdeparday commentedI am using the superfish menu and I am getting page not found because it is trying to go to / Any tips as to where I should look in the code to fix that?
Thanks
Comment #54
jive01 CreditAttribution: jive01 commented@gangarine I believe @straszko and I are referring to the same bug. That is because on a custom menu the
<nolink>
ends up becoming:%3Cnolink%3E
and does NOT wrap it in a span. There for it is redirecting the link to a<nolink>
page (which of course, doesn't exist)...Comment #55
jive01 CreditAttribution: jive01 commented@gangarine - I believe this is a Drupal 7 menu issue: http://www.palantir.net/blog/use-menus-drupal-7-you-need-menu-block-module . And I think a "self" option would be a great thing as suggested by @rob49152 .
Comment #56
kuroneko007 CreditAttribution: kuroneko007 commentedSubscribing, have the same issue that
<nolink>
links towww.example.com/<nolink>
, which doesn't exist. Using Nice Menus.Comment #57
skolesnyk CreditAttribution: skolesnyk commentedSame bug here with Gagarine's version of D7 module (submitted bug here https://github.com/gagarine/special_menu_items/ )
To clarify: menu is displayed using superfish module. So main menu item display after the base url.
Comment #58
Tjabine CreditAttribution: Tjabine commentedSame bug here with D7
Comment #59
omercioglu CreditAttribution: omercioglu commentedsub
Comment #60
tkrajcar CreditAttribution: tkrajcar commentedSubscribing...
Comment #61
VM CreditAttribution: VM commentedThe project is marked as abandoned/obsolete per the project page. That said, if someone in this thread wants to maintain the module and the current maintainers aren't responsive after two weeks. Those will to maintain need to file a webmasters issue to take over said module per the abandoned projects protocols.
see: http://drupal.org/node/251466 for more information
Comment #62
geek-merlin@webflo & @gagarine: are you willing to go for being new maintainers?
i would very mouch encourage that.
ps: what do you think about #1221294: option to use <a href="#"> for "nolink" items to not break other modules?
Comment #63
webflo CreditAttribution: webflo commentedgagarine is the new maintainer. see #1187464: Special menu items appears to be abandoned. I offering co maintainership for Drupal 7 branches.
Comment #64
skolesnyk CreditAttribution: skolesnyk commentedDoes anybody see following errors when editing a menu item in D7 with this module activated:
* Notice: Undefined index: link_path in special_menu_items_form_menu_edit_item_alter() (line 157 from ../sites/all/modules/special_menu_items/special_menu_items.module).
* Notice: Undefined index: #description in special_menu_items_form_menu_edit_item_alter() (line 166 from ../sites/all/modules/special_menu_items/special_menu_items.module).
I'm using latest git version from webflo, Drupal 7.4, Superfish menu
Edit: it seems the problem is related to combination of Special Menu Item and Menu Tokens modules. After Menu Tokens is uninstalled, errors are gone.
Comment #65
TimelessDomain CreditAttribution: TimelessDomain commented#64 - i am getting the same errors Menu Tokens
Also getting same error as #56 - using superfish
Comment #66
skolesnyk CreditAttribution: skolesnyk commentedSuperfish maintainer suggested one line change in superfish.module
Change this line in superfish.module from
$output['content'] .= l($menu_item['link']['title'], $menu_item['link']['link_path'], $link_options);
to
$output['content'] .= l($menu_item['link']['title'], $menu_item['link']['href'], $link_options);
But that doesn't work with Special Menu Items -- I still have "nolink" after site url.
Comment #67
VM CreditAttribution: VM commentedensure a cache clear after altering that line. Menu's tend to be cached IIRC
Comment #68
pwhiteside CreditAttribution: pwhiteside commentedI get same problem as #56, kuroneko007.
I am also using nicemenu.
if i use < seperator > (no space) I get "http://sitename/< seperator > (no space)
if i use < nolink > (no space) I get "http://sitename/< nolink > (no space)
Any help would be greatly appreciated. :D
Thanks, the Whiteside of life.
Comment #69
skolesnyk CreditAttribution: skolesnyk commentedClearing cache didn't help. Still full site url + #, instead of just # for the href location of a menu item.
Comment #70
kevinwalsh CreditAttribution: kevinwalsh commentedMy experience with bug reported in #56:
1. I changed the nolink setting to
<nolink>
2. I changed the link for a menu item in my primary menu to
<nolink>
3. I cleared cache.
Outcome:
On the "List links" page for the main menu (admin/structure/menu/manage/main-menu), the link for the menu item goes to
http://example.com/<nolink>
On a non-admin page, like the homepage, the menu item is greyed out, as in screenshot.
In a nice_menus block, the menu item is not greyed out, and goes to
http://example.com/<nolink>
, as in screenshot.Comment #71
Cardinals27 CreditAttribution: Cardinals27 commentedI'm having the same issues as others here. I've installed the D7 update and have the module enabled. I've placed
<nolink>
as the path value in the menu item, but it's spitting out:<li class="menu-path-nolink"><a href="/%3Cnolink%3E">Link Text</a></li>
as the source, which displays as:
<li class="menu-path-nolink"><a href="/<nolink>">Link Text</a></li>
as you can see it's also not placing the span tags like the D6 version does.
anybody found a workaround for this?
Comment #72
marcoka CreditAttribution: marcoka commentedi can confirm that menu modules taht somehow genereate their own markup liek suckerfish, supergish, nicemenu have problems with the because they generate a link
http://screensnapr.com/v/245LBP.png
Comment #73
marcoka CreditAttribution: marcoka commentedif you edit a views generated menu item:
http://screensnapr.com/v/aY9shy.png
Comment #74
wla_g CreditAttribution: wla_g commentedI've had a similar issue with custom breadcrumbs in D6 and solved it via jQuery with a simple script, that could help in D7 for similar issues. Of course, you'll have to tweek the script a litte bit. here is is
Comment #75
skolesnyk CreditAttribution: skolesnyk commentedRead this thread http://drupal.org/node/1190688 -- there's a fix for this bug.
Comment #76
gagarine CreditAttribution: gagarine commented@Webflo Sorry I didn't see I was maintener :/ (drupal.org *need* a way to track the issu you want). I added you too.
I going to take first my branch from github and so we can work...
Comment #77
rumblewand CreditAttribution: rumblewand commentedHave been successfully using the D7 branch of this module and got it to work with superfish AND mega menu based on the thread posted by skolesnyk in #75 above.
Only thing now is to get it working with custom breadcrumb module. I will experiment with the javascript in #74.
Comment #78
gagarine CreditAttribution: gagarine commentedI just made a 7.x-1.x-dev release... just wait than is packaged by the server.
Comment #80
patrykk CreditAttribution: patrykk commentedHi
I use nice menu and stil have same problem as #68 #70
http://example.com/,
enyone know how to fix it or just use Superfish
Comment #81
gagarine CreditAttribution: gagarine commentedPlease open new issue. Keep this one close.