Subcategories or nested categories

Hello, is it possible to create subcategories in a categories collection which be related to the blog posts?

- label: 'Categories'
  name: 'categories'
  identifier_field: slug
  folder: 'assets/content/categories'
  create: true
  slug: '{{slug}}'
    - { label: 'Category', name: 'category_name', widget: 'string' }
    - { label: 'Category Image', name: 'category_img', widget: 'image' }
    - { label: 'Slug', name: 'slug', widget: 'string' }

I have found a beta feature that allows nested collections. I haven’t tested it yet but I guess that it is what I was looking for:

1 Like

Hey there, @retroriff!

Glad you found what you were looking for :slight_smile:

Here’s some resources you might get more help should you encounter future questions related to our CMS. - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.