How to allow Content Creators to Enter/Edit a list of values.

Roger Knowles asked on March 21, 2019 18:36

On our site, I would like to let the content creators enter a list of items (retailers, for example) that I can then display in various ways. But, when I try to create a field for the Page Type, I don't really see a data option that looks appropriate for this type of thing.

I guess, in the end, I could just have the creators enter comma separated names (or names separated with newline characters?) into a large text field. Then I can parse that into an array and manipulate that. But, I was hoping for a way that would be a little more intuitive for our users.

Is there an easier way to do this that I might have missed?


Recent Answers

Brenden Kehren answered on March 21, 2019 19:19

The most common is to create a custom table which is a lookup for that field. You can then grant access to the custom table for your editors to add/edit/remove entries which will then automatically show up in your dropdown list in the page type.

Depending on how you want users to select those values you could set the page type field as a integer to only store one value or a string to store multiple values in a comma separated string.

0 votesVote for this answer Mark as a Correct answer

Eric Dugre answered on March 21, 2019 19:41

If you mean for your editors to add this list in the Form tab of a page, you could use this form control: It allows the editors to add/delete items from the list as often as they'd like. When you display the list you'd need to parse the JSON value, but that shouldn't be an issue.

0 votesVote for this answer Mark as a Correct answer

Roger Knowles answered on March 21, 2019 20:18

Thanks very much for these answers! I'll look at both of these approaches.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.