How to define a model with constrained to just one entry?

In my case I need to add a single “highlighted blog article”. I just need one sheet where i can reference exactly one blog article manually. I can do this with Data/Section Models, but I can add infinite amount of entries to this model, which I don’t want.

Is there a way to define a simple meta data like model?

Hello @oemeran,

Welcome to the forum post.

At the moment, there is no way to limit the content entries for models. However, you can utilize the Validation Hooks feature to prevent users from publishing another entry if the content length is 1.

Furthermore, we strongly encourage you to submit a feature request at Ideas

Thanks for your reply. Very sad that we don’t have a solution for this very basic CMS feature.

I created an “idea” as you suggested. Anyone that comes across this issue, please leave a vote here: Add a singleton global data model | Ideas

I was not able to find Validation Hooks for data structure models.

Update: I know why… only enterprise plans have it.

1 Like

Yup, I have the same problem :sweat: I basically told my Product Owner that she should only ever add 1 entry, because I can not limit it. Very bad tbh.