(Field type) Link autocompletion for media entities

by Hudri   Last Updated November 14, 2017 18:07 PM

How can I enable autocompletion for media entities in Link fields? The Link field seems to "know" only nodes, but no media entities.

Use case:

I've got a paragraph for a "card style" link consisting of 4 fields for an image, a title, a short description and a link. The paragraph must work for internal and external links, so I'm using a Link field and not an entity reference.

A common task is that editors upload a PDF to the media library, and provide a nice download link to the PDF on multiple nodes, using the paragraph mentioned above.

Tried this, doesn't work good enough:

I know that it technically would be possible to manually enter a path like /media/<media_entity_id>. But this so bad UX that I need to find a better solution.

I also have LinkIt installed, but sadly I can't use LinkIt for Link/URL fields.

(I'm using Drupal v8.4 core media)

Tags : 8 media


Related Questions


Drupal adds all photos to frontpage

Updated August 14, 2016 08:03 AM

colorbox gallery with media field

Updated April 14, 2017 09:07 AM

View files from multiple (filtered) nodes

Updated August 05, 2017 10:07 AM

Dedicated image style for media gallery teaser

Updated August 19, 2015 18:03 PM