Forum OpenACS Q&A: Bulk upload of categories?
I'm looking into doing an import of Categories. I'm just wondering has anyone any experience doing this, or code examples to share? I'm looking at the XML procs in here http://openacs.org/api-doc/procs-file-view?path=packages%2fcategories%2ftcl%2fcategory%2dxml%2dprocs%2etcl and they look pretty good, but it'd be nice to see if anyone has experience importing from CSV or other formats.
Parent Category | Subcategory
Where you can create an infinite tree of categories based on the name by just looping over the rows in a CSV.
ie: If subcategory is blank create a new top level category. Otherwise create a subcategory of the category with the matching name for parent category.
This assumes you don't have any duplicate categories anywhere in the tree.