Contentful logo

Contentful Community

Hierarchical replationship of drop-down fields

Hi guys!

I have a question regarding content modelling.

Assume I have the following structure:

Main categories:

  • Electronics
  • Furniture
  • Food

Based on the main category chosen, I want to show different options in the next field:
Sub-category (assume “Electornics” is chosen above)

  • Phones
  • TVs
  • Video Games

How do I best achieve this in contentful? I’ve tried with the reference, but it doesnt quite do the trick.

Any help would be incredibly appreciated!

1 Like

Do you need to implement a custom field editor? I have not done this and do not know how it works.

GitHub - contentful/field-editors: React components and extensions for building Contentful entry editor