Make field/page read-only

Hey there,
I’d like to make certain fields read-only when entering unlisted and completely disable / “archive” the page when changing it to unlisted. The latter would only require checking for status() inside 'page.update.before' and throw an exception - but what about partly disabling certain fields? :confused:


I don’t think there is an easy way. Unfortunately, disabled doesn’t accept a query string and programmable blueprints don’t work with page props either. So the only way would be a page.update.before hook that throws an error or a page model that simply ignores those values on save.

1 Like