I’m creating a site for a band, an archive of their concert recordings. Each post will have a set list of songs they played - and it makes sense to use fields that can consistently pre-populate the song titles, rather than writing them out each time in a textarea. In the future, it might useful to do more than output a list, e.g how many times ‘Song X’ has been performed live, what album is ‘Song X’ from? etc…
The parent field will be structure, and I thinkselect makes sense for each entry. However, this only outputs the slug of each option, rather than the text. Am I on the right lines here? Does select make sense (also considering tags)? Is there a better approach that allows for the text to be output - should I be looking at dynamic options to do more with the data?
If it’s just a single element within the structure field, you might consider using an Entries field type instead though maybe not a big difference from Structure to matter.
If the list of songs is known/static (won’t need new ones added later), there’s probably a few options for how to handle. e.g. You could list them all as options in the blueprint or build out unpublished pages and grab the title using a query to set options in a Select menu, pull data in as options from a static JSON file, etc.
If the song list isn’t fixed (may need new ones in the future), it might be best to have a way to edit them within the panel and have the list therefore auto-update.
How about creating a separate child page for each song and then selecting it in the pages field of the setlist? This gives you flexibility and allows you to expand the concept as needed, for example, to include additional information such as the year of release, playing time, the associated album, or even the complete lyrics.
Thanks very much everyone! First of all, didn’t occur to me that I could just have the text value in the select options. I’ve been playing with all the suggestions, and I reckon @GB_DESIGN has nailed it with having songs as child pages. Thanks all!
Just wanted to follow up on this! The site in question launched today, and I just wanted to thank folks again for allowing me to pick your brains on structuring data. I learned a lot of new Kirby skills on this project that only make me love this CMS even more.