I’m experimenting with Contentful for a choral website, and was wondering if it is possible to create a custom field type (not content type) that can be edited inline and include a relationship.
For example, choral Seasons have a list of Singers (could be modeled as Relationship), but singers may have a different voice part per season. In a database this would be modeled as a join table, where SeasonSinger
would have a reference to the singer and a part enum. However, I do not want to create a top-level SeasonSinger
content type in Contentful. These records are not reusable, and are specific to a specific season and member.
I would like to be able to create a custom field type that accepts some other fields and a relationship, but am unsure if this is possible in Contentful. Ideally, it would be possible to edit these values inline with the rest of the Season
page when adding a new season. See Sanity - Object Type for an example in another headless CMS.
Any suggestions for how this could be possible, ideally without creating a content type? My main problem with content types for something like this is that it doesn’t make sense to have a top-level record for each relationship (cannot be referenced anywhere else) and using the nested editor doesn’t make sense for a large list of simple relationships.