craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
288 stars 139 forks source link

Element fields not being honored #1378

Closed dr-codswallop closed 10 months ago

dr-codswallop commented 10 months ago

Description

Importing nested element fields aren't populating.

Given a use case of populating an Agents section. Each Agent has a headshot asset, and there's an asset field for photo credit.

Example node from the XML feed:

<data>
  <agent>
    <ID>329</ID>
    <photo>https://example.com/wp-content/uploads/2016/11/joe-bloggs.jpg</photo>
    <credit>Mark Pringle</credit>
    <Firstname>Joe</Firstname>
    <Lastname>Bloggs</Lastname>
  </agent>

  ..more <agent> nodes

</data>

image

The asset gets created, but misses the 'photo credit' data. No evidence of it being used in the logs :

image

Tried it with a csv feed instead, but same issue.

Additional info

fgd007 commented 10 months ago

I have the same issue. I'm importing Entries via a json file. Each entry has an image object with additional fields, which I map with Element Fields. Unfortunately they're being ignored when importing the content.

angrybrad commented 10 months ago

Resolved in https://github.com/craftcms/feed-me/pull/1383 and will be included in the next release.