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

Unable to import a Categories array #1455

Closed
daniellelecomte opened this issue May 28, 2024 · 1 comment
Closed

Unable to import a Categories array #1455

daniellelecomte opened this issue May 28, 2024 · 1 comment
Labels

Comments

@daniellelecomte
Copy link

daniellelecomte commented May 28, 2024

Description

Trying to import categories on entries within a CSV file. I have tried the following formats:

Cat 1, Cat 2
[Cat 1,Cat 2]
['Cat 1','Cat 2']

The first one will work but only imports the first category and ignores any additional ones. I've also tried using the category IDs instead of the titles with the same result.

Additional info

  • Craft version: 5.1.7
  • PHP version: 8.2
  • Feed-Me 6.1.0
@i-just
Copy link
Contributor

i-just commented May 28, 2024

Hi, thanks for getting in touch!

When using CSV file to import your data, commas are used (by default) to separate the columns in the CSV. To separate the data inside a column, you need to use a different separator. By default, Feed Me uses -|-, and you can change it via dataDelimiter. If you use the default delimiter, then Cat 1-|-Cat 2 should work as you expect it to.

You can find more about the configuration options here.

I hope this helps!

@i-just i-just closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants