We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

csvgrab and multiple categories

Development and Programming

jejuna's avatar
jejuna
105 posts
16 years ago
jejuna's avatar jejuna

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.