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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sunlix created an issue. See original summary.

sunlix’s picture

adriancid’s picture

Hi @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.

adriancid’s picture

Version: 8.x-1.25 » 8.x-1.x-dev
Assigned: sunlix » Unassigned
sunlix’s picture

Hi @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

joachim’s picture

> 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.

oknate’s picture

Here are screenshots of the patches in #3
Option 1:
option 1
I think this unnecessarily takes up too much horizontal space and that it should stay under content.
Option 2:
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".

oknate’s picture

FileSize
52.48 KB
1.52 KB

Here'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".

media add link

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.

joachim’s picture

> 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.

  • adriancid committed 39c1c1b on 8.x-1.x
    Issue #3026216 by adriancid, oknate, sunlix, joachim: Add media link to...
adriancid’s picture

I added only the Media item to the Content menu

adriancid’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.