I’ve been looking into bulk category creation.
The best I’ve found is this solution: Administrative Bulk Operations
Though creating those json files for the purpose of bulk creating new custom categories seems quite tedious unless you have some custom builder to create them and assign the ids correctly. Especially if working with any subcategories.
I think it would be a useful feature for Discourse to support bulk category creation via CSV upload, comparable to how tags are uploaded, formatted in a simple way. For example, like below:
Category | Subcategory 1 | Subcategory 2 | Description |
---|---|---|---|
my custom parent category | This category is a parent category | ||
my custom parent category | my custom subcategory | This is a lvl 2 subcategory | |
my custom parent category | my custom subcategory | my custom sub-subcategory | This is a lvl 3 subcategory |
Expanding on this to include other custom options/columns could be considered as well.
Here is an example json entry for a category, when exported using this method: Administrative Bulk Operations
{
"id": 1,
"name": "Uncategorized",
"color": "0088CC",
"created_at": "2020-07-23T02:27:33.970Z",
"user_id": -1,
"slug": "uncategorized",
"description": "",
"text_color": "FFFFFF",
"auto_close_hours": null,
"position": 0,
"parent_category_id": null,
"auto_close_based_on_last_post": false,
"topic_template": null,
"all_topics_wiki": false,
"permissions_params": {}
},