I see folks have asked about this, and the documentation clearly states that the category_field is:
“The element in the feed that contains the category (or list of categories)”
and the category_delimiter is:
“The delimiter between categories in the category_field element. Use the value “SPACE” for a space delimiter.”
So, I’m assuming that multiple categories are supported.
Here’s my text file:
“SLM101a”,”8 272”,”z”,”Single Letter Monogram”,”1.475X1.475”,”Repeating Fleur De Lys”,”Black”,”monogram stamp stamper gift stamps” “SLM102b”,”8 272”,”z”,”Single Letter Monogram”,”1.475X1.475”,”Scalloped Initial”,”Black”,”monogram stamp stamper gift stamps”
Here’s my template:
{exp:csvgrab url=”http://mycorrectfilehere.csv” weblog=”2” title=”1” delimiter=”,” encloser=”QUOTE” category_field=”2” category_delimiter=”SPACE” use=”3|4|5|6|7|8” fields=”pricecode|item|size|desc|color|keywords” }
I get a response like:
Checking: SLM101a Found new entry: SLM101a
Category 8 exists
Category 272 exists
Checking: SLM102b Found new entry: SLM102b
Category 8 exists
Category 272 exists
…and it adds the entries. But no categories!
Am I doing something incorrectly? Stupidly? Does the plugin not support this? I’ve tried it with both Andrew’s and Dan’s patched one.
My cats are in different groups, but I’ve also tried with cats that are in the same group, but no love! I’ve also tried sticking the 2 cats separated by a comma in the category=” ” field, and removing the category_delimiter line. No luck, either.
Any suggestions are appreciated.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.