Doing more with lists in Contentful

Published on February 27, 2014

BlankWaves-08

Subscribe for updates

Build better digital experiences with Contentful updates direct to your inbox.

If you are working on the app that is meant to disrupt NYC real estate market, sell some handmade jewelry on Etsy or simply publish a book of Aunt Molly's recipes online, the chances are you will need to use lists to organize your data. And up to now, lists were something conspicuously absent from the content editor on Contentful.

Well, we are happy to tell you that our software engineers took care of this glaring omission in the latest development iteration. As a result, Contentful makes it extremely simple to enter pre-defined information in your entry fields. To enable lists in your content type, you'll need to add a "pre-defined values" validation rule in the field type settings. After that simply enter list values one by one.

Content Type editor

We know that it might take a while to get the right order for your list, so we made sure that you can play around with list values by dragging and dropping them around or simply eliminating unnecessary options with one click of a mouse.

Once the content type is published, your editors will see standard drop-down menus and can easily chose the appropriate value from there. And remember, lists are not limited to text fields, you could just as easily have lists for numbers or symbols.

Entry dropdown

That is all hunky dory, you might say, but what about giving my editors an option of choosing multiple values from the list? Unfortunately, so far we do not permit lists with multiple choices within the editor. Mostly because introducing such an option at this point in time would require a lot of mental juggling on behalf of content type creators and thus might accidentally rip the space-time continuum on our platform.

However, you can easily deal with this limitation and the fact that we currently impose the limit of 50 entries per list by opting for the "Multiple Entries" field type instead. Once you do, just create all required choices as entries and your editors will be able to select an unlimited number of these as they create new content.

We hope this feature will make your life a tad more enjoyable and it goes without saying that we would love to hear what you think about it.

Subscribe for updates

Build better digital experiences with Contentful updates direct to your inbox.

Related articles

Illustrated image of a person working with the new app building tools created by Contentful
News

Apps out of the bag: Discover Contentful’s new app development tools

October 5, 2021

The Contentful Developer Hero Program is a cool new initiative to recognize, support and empower the most passionate and talented developers in the community.
News

Announcing the Contentful Developer Hero Program

August 1, 2024

Content modeling made easier: Embrace a unified workflow with Visual Modeler
News

Content modeling made easier: Embrace a unified workflow with Visual Modeler

September 15, 2023

Contentful Logo 2.5 Dark

Ready to start building?

Put everything you learned into action. Create and publish your content with Contentful — no credit card required.

Get started