This project was bootstrapped with Create Contentful App.
This app is here to provide a custom and simple dropdown rendering for entry reference. It solves the issue explained here : https://stackoverflow.com/questions/67280282/how-can-i-set-different-label-and-value-for-dropdown-fields-in-contentful
Once the app is installed:
- Create a "Reference" field in the content type you want to use it.
- Define its type as "One reference" and validate.
- In the "Appeareance" tab, select "Simple dropdown reference"
- In "Validation" tab, select the content types you want to be retrieved in the dropdown list
- Click "Confirm", that's it
You should be able to see a dropdown list to select a reference in the related content entry.
Read more and check out the video on how to use the CLI.
Create Contentful App uses Create React App. You can learn more in the Create React App documentation and how to further customize your app.