0

Having difficulties importing nested categories from a CSV. Currently I have a single categories column, formatted as follows: 'parentcategoryname, subcategoryname'.

The subcategories all have unique URIs but their names are not unique. So, the subcategory with the correct name will be selected on import, but it will be under the incorrect parent category.

Is there a way to import nested categories, and I just have my CSV set up incorrectly?

EE version 2.9.2, Datagrab version 1.9.2

1 Answer 1

3

From the Developer:

Use a slash ‘/‘ to separate subcategories, so you can do something like, 'Category / SubCategory'

The delimiter is hard-coded but if you want to change it is around line 1420 of models/datagrab_model.php:

$delim_cats = explode('/', $cat);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.