craftcms / feed-me

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

Unique Identifier for Matrix #1167

Open my2ter opened 2 years ago

my2ter commented 2 years ago

Based on your comment @brandonkelly https://github.com/craftcms/feed-me/issues/463#issuecomment-504988387

This happens because Feed Me doesn’t have a way of matching your feed’s blocks with existing entry blocks, so it will always just delete the current entry blocks and recreate them with whatever’s in the feed. [....] We are considering adding a Unique Identifier setting for Matrix fields within the feed settings, which would give you a way of matching incoming blocks with existing ones.

Any progress on this, please?

Also I don't think it should be limited to Matrix field only, a Table / SuperTable should allow to be updated without losing data.

Cheers

yoannisj commented 4 hours ago

@my2ter , I recently landed on related issue #1537 where brandon says the plan is to allow importing entires nested inside Matrix fields via a separate and dedicated feed-me feed.

That said, we’re going to look into making it possible to import nested entries directly via their own import job, via new “Field” and “Owner Element” entry import settings. That way you’ll be able to match incoming nested entry data against existing entries, and update them if they already exist, like any other entry import.

Until then, the recommended solution to import data into multi-site Matrix fields is to change the field's propagation method to "Only save entries to the site they were created in".