Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feeds support #51

Open
jenlampton opened this issue Dec 15, 2020 · 2 comments
Open

Feeds support #51

jenlampton opened this issue Dec 15, 2020 · 2 comments

Comments

@jenlampton
Copy link
Member

I am importing content via CSV files and would like to be able to import references. I have a column in my spreadsheet with the node title of the referenced node, and would like the importer to convert that to a nid and save in the reference field.

I'm working on a PR to include this kind of feeds-importer integration.

@olafgrabienski
Copy link
Member

olafgrabienski commented Dec 15, 2020

I'm not a Feeds and import expert, have done some imports to Drupal 7 with Feeds years ago. That said, wouldn't an import be more robust if it used the ID of the referenced node? While the node ID of a given site is unique, there can be several nodes with the same title which could cause problems.

@jenlampton
Copy link
Member Author

That said, wouldn't an import be more robust if it used the ID of the referenced node? While the node ID of a given site is unique, there can be several nodes with the same title which could cause problems.

Feeds provides the option to list a field as being unique or not so titles can be used as unique identifiers when it's safe.

In my case, the people creating the spreadsheets know nothing about the website, so they are not able to give me a list of node IDs. If you had a spreadsheet with node IDs, you could certainly map those to the reference field and that would be much safer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants