I’ve built a package to define fields, models, and blocks programmatically within source code, rather than relying on manual changes in the CMS UI. It’s working well so far, but to fully enforce consistency and avoid accidental changes through the CMS interface, I’d love to propose a small but powerful feature:
The ability to “lock” models and blocks so they can only be modified via the API, not through the UI.
This could take the form of a flag or metadata field on models/blocks that signals they’re managed by code, effectively disabling UI-based editing. It would really help enforce a single source of truth and protect against misalignments between code and CMS config.
Would love to hear your thoughts or if there’s something similar already in the works!