Active
Project:
Feeds
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 May 2019 at 04:23 UTC
Updated:
10 May 2024 at 16:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
megachrizFor images, you can map to the following:
Where in Drupal's UI can you configure the caption and photo credit for an image field?
This is how my admin screen for editing an image field looks like. I don't see 'caption' or 'photo credit' mentioned here:
Comment #3
vlooi vlerke commentedWith Drupal core media module you can add fields to images.
You can add a Caption field and a Photo credit field for example.
With the patch found over here: https://www.drupal.org/project/feeds/issues/2928904
You can import images via feeds into a core media image field.
This is how the feed mapping looks for a media image field

Currently there are no other image feed mappers available like Alt and Title.
This is how a normal image mapping looks like.
These existing image field mappers should be available to the media image field.
Secondly all extra fields that gets added to an image field should also show up as image feed mappers.
Example: Caption and Photo credit fields.
Users that used the D7 media module and have extra fields in the media image will need these feature to upgrade to D8/9
Comment #4
vlooi vlerke commentedSetting this to normal. It cant be that critical.
Comment #5
vlooi vlerke commentedThis feature exists already, but not on the Feeds Node processor but the Feeds Media processor.
Create a new image import feed.
Select the Feeds Media processor and select Media type image.
Under mapping you will find all the image targets like Alt, Title and your own custom fields like Caption.
Add Name mapper and set it to use your image file name.
Add your media image field and set it to use your image file name.
Use feeds tamper to point your image file name to its correct path in your files directory.
Import your images as media.
Create a new content import feed.
Select the feeds content processor and a content type like articles.
Under mapping add your media image reference field and select Name as reference
Import your articles.
Your articles will now contain images that reference media images.
Comment #6
irinaz commentedComment #7
irinaz commentedComment #8
kristen polSwitching to support request based on #5.
@lyceih Please try the approach from #5 and let us know if that works or doesn't work for you. Thanks!
Comment #9
kristen polCleaning up unnecessary tags.
Comment #10
sportch commented@Vlooi Vlerke Any chance you know of a video or documents to set this up? Not sure which tamper I need to use to set file dir.
Comment #11
kristen pol@sportch Did you mean to revert the changes I did in #8 and #9? Maybe you hadn't refreshed your page. If you have a reason for reverting these, please comment. Thanks.
Comment #12
socialnicheguru commentedI setup a separate feed to import images using media core.
I do not see the alt or media title fields
Comment #13
socialnicheguru commenteddeleted comment - wrong issue
Comment #14
dennis cohn commented@SocialNicheGuru, I don't see the "media processor"
Did you install an extra module for it?
EDIT: Never mind... enabled the media module, duh! :)
Comment #15
dennis cohn commented@Vlooi Vlerke
Is it possible to explain this part a bit more?
I can't get this part to work...
Comment #16
dennis cohn commentedI've added some screenshots. I keep getting errors while importing my images.
Anyone who managed to upload media succesfully from the public folder?
Comment #17
bkosbornelyceih never responded, but I suspect #5 would not be helpful to them, as they're likely trying to import to a node that has a media reference field on it, and want to create the media at the same time.
Comment #18
ptmkenny commented