I am trying to create a view that shows Title and Image from a content type that does have Body + Image fields.
However, I am using IMCE to add images to the body of the node. When I look in the "edit" for the node, I see the images in the body pane, and nothing in the Image field. In that case, is there any way to access those images via Views?
When I try to display the "Image" field or the "body" field, they are the same and include both the body text and the image(s).
Will I have to add the images via the Image field to be able to access them separately from Views? In that case, can I still place them where I want in the body?
Thanks,
Leek
Comments
Comment #2
thallesYou need check if content teaser show the image, becouse for default, I think views get content by teaser mode
Comment #3
leeksoup commentedThank you for your quick reply.
Sorry I was not clear. Yes, the Teaser does show the image, but I want to show ONLY the image and not the whole teaser for this particular view. It is supposed to be a grid of titled images, with link to the full content.
Comment #4
thallesSee:

Comment #5
leeksoup commentedI am not sure I understand. Your picture shows that images in the content are shown in the View via the Teaser display? Yes, I agree it does.
I have tried this and I don't know what you mean by "image field." Is there anything in that Article body besides the rooster image?
My content has text and images. The images were entered via CKEditor integration with IMCE, and not via the Image field.
When I follow your example I get the full teaser, not just the image(s). Yes, I can make them a grid like you show, but I don't want the text in it.
I think the problem is that when the images are embedded into the body field, they are not accessible as a separate image / entity reference field. This appears to be a problem using the core Media / Media Library modules as well.
Comment #6
thallesDo you want only image of body(ckeditor)?
If it is, maybe this another issue can help you: https://www.drupal.org/forum/support/theme-development/2011-01-31/extrac...
Or do you want the image that is outside of body field(ckeditor), image field
Comment #7
thallesComment #8
leeksoup commentedYes, only image of body (embedded using ckeditor).
Thanks, I will check out that issue to see if it can help.
Comment #9
leeksoup commentedToward the end of that issue thread (which was quite old so some of the solutions don't work any more with Drupal8) the solution is given to use the Insert contributed module. I tried that and it does seem to work, but then it doesn't use the IMCE file manager at all. Or the core Media Library for that matter.
Thanks for your help.
Comment #10
thallesIn the version 8.x-1.8, images inserted with IMCE are also entities
Comment #11
leeksoup commentedThat is good! When will it be ready?
Will it be possible then to directly retrieve a list of linked image entities? Will it fix the problem so that Views can pull out only the images from such nodes?
I have found the same problem with the core Media Library module as well, and it already treated images as entities.
Comment #12
thallesI don't know if this solve this problem.
I has no permission to publisher a new version.
Comment #13
leeksoup commentedOK, thank you for your help!
Comment #14
thallesCan I close this issue?
Comment #15
leeksoup commentedSure. It doesn't seem to have a solution but at least others will be able to read all the info here. Thanks again.
Comment #16
thallesThanks too you!