Problem/Motivation
One of our content types has gone missing from the admin toolbar under 'Structure > content types', present when you click on 'content types'
Using the development link 'rebuild menu' didn't solve this.
Steps to reproduce
Mystery
Proposed resolution
Add a way to regenerate the links for content types, currently, all content type links are un-editable with the message 'This link is provided by the Admin Toolbar Extra Tools module. The title and path cannot be edited.'
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork admin_toolbar-3215022
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
telegraph commentedJust as it mysteriously disappeared, it has now magically re-appeared...
Comment #3
telegraph commentedComment #4
telegraph commentedSo expanding on above comment, when I start manually adding links back to have the content type that the content type menu, the admin toolbar links suddenly 're-activate'.
Then, I delete the ones that I've just created, to remove the duplicates in the menu. I have to 'flush cache' for these duplicates to be cleared from the menu. At this point the admin toolbar links disappear again...
Baffling.
It is only when I have a sub-menu item with a weight on the manually entered content type that the admin toolbar links re-appear (I can then disable the links on the manually re-entered items, and admin toolbar links stay in place)
Comment #5
telegraph commentedOur taxonomy menu is affected in a similar way, where many entries are missing from the menu.
Could our menus be too long?
Comment #7
greenskin commentedFound there's a `max_bundle_number` config set to 20 by default. If you have more content types (bundles) than this setting, you'll only see the first X processed. This setting is configurable at /admin/config/user-interface/admin-toolbar-tools.
Comment #8
mlncn commentedThis might be worth finding a way to warn people when the limit is hit, because it is very unexpected to run into say when you have 21 content types on the site you inherited and "Article" is no longer available from the menu!