Forgive me if this is a duplicate, there's a number of other issues that skirt related subjects in the queue, both opened and closed, but I can't tell what the current status is RE: alpha4. The alpha4 (and possibly alpha3?) versions of admin_menu add an "Administration menu" menu item to drupals menu list. I am able to move the "Create content" tree into the administration menu tree and have it appear, but no other menu items, newly created or moved, will appear. What am I missing?

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Did you try whether they appear after flushing caches?

fearlsgroove’s picture

Yes I tried, flushing cache doesn't seem to help. You can reproduce quite simply:

  • create a new drupal site with default install profile
  • enable admin menu
  • Create new content (page/story)
  • create a new menu item in the admin menu (admin/build/menu-customize/admin_menu/add), path node/1, parent item or Administration Menu (doesn't seem to make any difference which
  • clear the cache (drush cc)

expected result: new item in the admin menu
actual result: no changes to admin menu

fearlsgroove’s picture

Status: Postponed (maintainer needs more info) » Active
fearlsgroove’s picture

As far as I can tell I can move menu items provided by code into the administration menu and they show up, however "custom" menu items, including those created thru the menu section of the node form, do not show up.

traceelements’s picture

I really, really wish this feature would be added. I would be very happy to be able to customize the administration menu. It would be nice to be able to "un-enable" items in the menu that I am not using. Currently, un-enabling links in the administration menu is not reflected in the menu bar, nor is adding links.

A step beyond this would be to be able to set what displays in the administration menu based on the user. For example, I'd like to be able to set exactly what links show up for my editor in the menu.

fearlsgroove’s picture

Status: Active » Needs review
StatusFileSize
new850 bytes

This appears to be because manually added menu items are technically callbacks, and admin_menu obscures callbacks to hide a bunch of crap links:

    if (isset($data['link']['type']) && $data['link']['type'] == MENU_CALLBACK) {
      continue;
    }

Why are there a bunch of odd links dumped into the admin_menu? I haven't looked. In the site I'm testing, there's a delete link for each content type and several remove field links (possibly for each field, haven't confirmed that tho) in the root of the admin_menu menu. They all have plid 0 and type CALLBACK so maybe they're related to the drupal core issue.

All of those links also seem to be hidden (hidden != 0) as well, while manually added menu links (node/1, civicrm, etc) are not hidden. This patch changes this check to look for hidden, which seems reasonable, and in my testing resulted in all the same links being visible, plus the manually added menu items.

fearlsgroove’s picture

StatusFileSize
new800 bytes

sorry last patch had extraneous debug statement still in it

fearlsgroove’s picture

Version: 6.x-3.0-alpha4 » 6.x-3.x-dev
fearlsgroove’s picture

Component: Documentation » Code
fearlsgroove’s picture

Category: support » bug
traceelements’s picture

It worked! Thank you so much!

liquidcms’s picture

i tried to apply patch and realized i was still at 1.5

upgraded to 6.x-3.0-alpha4 and applied patch - not only did my manually created menu item not show but i now have duplicates of some other items

realized there was an update script i had to run - ran that and now i have no items in admin menu

uninstalled menu and tried from scratch.. no help - no longer have any items in admin menu

i guess this is why alpha - this inital issue is new for D6 isn't it - i know i was able to organize the admin menu items and add as i needed in D5

fearlsgroove’s picture

[812524] is a duplicate of this

hixster’s picture

subscribing

sun’s picture

Status: Needs review » Needs work

One of the conclusions drawn in #6 is correct: you are facing those bugs in Drupal core's menu system, as listed on the project page.

leamas’s picture

leamas’s picture

Status: Needs work » Needs review

#7: admin_menu-754338.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, admin_menu-754338.patch, failed testing.

domidc’s picture

Having same problem with 6.x-1.6

danny englander’s picture

Same issue, subscribing.

mtpultz’s picture

Subscribing

mastfish’s picture

#7 works for me, running 6.20.
Thanks

johnny-j-hernandez’s picture

Issue tags: +Admin Menu

I have a new menu item for the page view of my module and I've created a link in the Navigation menu but it just won't show up in the administration menu drop down. I created the menu through the admin/build/menu/add page and my new menu link shows up fine on the admin page for the parent item. I've cleared cache, "wiped and rebuild" on the admin menu settings and rebuilt my theme registry. Nothing works.

Pressflow 6.17

-johnny;j

moosh101’s picture

Same here. Manually created admin menu items do not get displayed on the Administrator Menu. Is there anyway to add manually created menu items to the Administrator Menu module other than hacking the code?

Thanks,

Shane.

sun’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue tags: -Admin Menu +D7 stable release blocker
inky@inky3d.com’s picture

Same issue - using 6.22, admin_menu 6.18

Edit: I reinstalled the module, and discovered that I can add menu items to the Admin_menu. But any existing menu items (eg the help) still show up even if disabled.

Flushing the cache clears all changes I made and reverts back to default.

sun’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Issue tags: -D7 stable release blocker

Apparently, this issue was never filed against 7.x-3.x, and I'm also not able to reproduce the bug in 7.x-3.x.

Thus, removing the tag and reverting version.

sun’s picture

Status: Needs work » Closed (won't fix)

This won't be fixed in 6.x-3.x anymore. The menu system in Drupal 6 core has/had many major problems, and I'm not eager to work around them, as that would require lots of complex, custom code. Solution: Upgrade to Drupal 7.

ssn’s picture

Make your menu paths like "admin/..." e.g. "admin/user/filter". Clear the cache and the admin menu will automatically pick the menu items. It works on drupal 6 don't know about drupal 7.