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.
Hi,
currently the 'media' link is disappeared from the content menu in the toolbar.
I wrote a patch to re-apply the link in the toolbar persistently.
Back in other versions or circumstances the link was displayed, but I don't know why it is disappeared.
I hope this patch is helpful to bring back this useful link for all. :)
regards,
Sven
Comment | File | Size | Author |
---|---|---|---|
#8 | admin_toolbar-media-link-3026216-8-option3.patch | 1.52 KB | oknate |
#8 | option 3.png | 52.48 KB | oknate |
#3 | admin_toolbar-media_link-3026216-3-option2-D8.patch | 1.58 KB | adriancid |
#3 | admin_toolbar-media_link-3026216-3-option1-D8.patch | 1.22 KB | adriancid |
Comments
Comment #2
sunlixHere is the patch.
Comment #3
adriancidHi @sunlix thanks for reporting, can you use the next time the Issue Summary Template?
I think we have two ways here:
1-. Create a new top menu between Content and Structure named Media and add the 'Add media' links with the submenus there.
2-. Create a Media link on the Content menu and add inside all the Add ... media links.
I added a patch for each case.
Comment #4
adriancidComment #5
sunlixHi @adriancid,
for sure, oversaw the template, sorry.
I think I would prefer the second option.
In case of a new top level menu item, admin_toolbar have to introduce a new toolbar icon for media.
So your second option is more in line with the default drupal admin navigation I think.
regards,
Sven
Comment #6
joachim CreditAttribution: joachim as a volunteer commented> 2-. Create a Media link on the Content menu and add inside all the Add ... media links.
As far as I can tell, Media module already adds that.
Comment #7
oknateHere are screenshots of the patches in #3
Option 1:
I think this unnecessarily takes up too much horizontal space and that it should stay under content.
Option 2:
Note that with option 2, I'm seeing two "media" links under content. I also prefer not to add "Add" to each link (i.e. "Add Image"), it should be on the parent, "Add Media", and then the link for adding an image can just be "Image".
Comment #8
oknateHere's a third option. Add the new menu item for "/media/add" with the add links underneath, but keep the old list link for "/admin/content/media".
While it's not ideal to have two "media" links under the content drop-down, I tested adding the "add media" ("/media/add") link under the normal "media" link ("/admin/content/media"), and I didn't like the experience of the third submenu for "/media/add/image".
I think having two "media" links, the "media" list link and the "add media" ("/media/add"), is better than having few media related links under content, but then having to go through a submenu item for "media/add" to get to "/media/add/image". It's better UX to be have less drop-downs to navigate to.
I also don't mind the new top-level item, but it seems wasted real estate, wasted space, since there'd only be the "/media/add" item under it.
Comment #9
joachim CreditAttribution: joachim as a volunteer commented> I think this unnecessarily takes up too much horizontal space and that it should stay under content.
I agree. It's also not scalable, as you can't add a new top-level menu item for each content entity type!
I think also we should be tackling this in a more generic fashion, rather than hardcoding for each module -- see #3028213: generalize creation of 'add ENTITY' and 'add BUNDLE' links.
Comment #11
adriancidI added only the Media item to the Content menu
Comment #12
adriancid