Allow Views to access media embedded in text fields

Created on 2 April 2020, about 5 years ago
Updated 13 June 2024, 10 months ago

I am trying to create a view that shows Title and Image from the Article content type that does have Body + Image fields. I want to pull just the titles and images from several such nodes into a grid using Views.

I am using Media Library to add images to the body of the node. When I look in the data saved for the node using the Devel module, I see the images in the body field, and nothing in the Image field.

What I have tried:

  1. When I try to display the "Image" field or the "body" field from Views, they show the same result in the display and include both the body text and the image(s). I cannot get just the images for the View I am trying to create.
  2. Another way I found is to use the Insert contrib module . This allows me to both embed the image in the body and to have (the same) image in the image field so that I can access it from Views. However, this totally bypasses the core Media / Media Library functionality, which I would rather use if it is an option.

Question:
If I want to access only the embedded images in my nodes via Views, is #2 my only option? Seems to me like a big hole in the otherwise excellent core media system.

Thanks!

Feature request
Status

Closed: won't fix

Component

Idea

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia pameeela

    I agree with everything @phenaproxima said, and since no one else has chimed in for 4 years, I'm going to close this one. Insert module is still trucking so that is definitely your best bet if you are looking for this functionality!

Production build 0.71.5 2024