Readonly content name field

Does anyone know if it is possible to make name field readonly via SendingContentNotification in Umbraco 13? It doesn’t seem to.

It is possible to hide content apps, tabs, properties and set properties to readonly.

I know it is possible in a custom view in e.g. in custom section and Umbraco UI Builder handle this now:

The reason is some imported data, which shouldn’t be editable (and would be overwritten anyway).

It would probably make sense with a Readonly property on ContentVariantDisplay simular to Readonly property on ContentPropertyDisplay, but ideally only on name field as it can be controlled which properties to make readonly and actions can be removed.

It seems it may be easier to handle in the new backoffice.

It seems this should set readonly of name input field:

which is passed in here:

and further here:

In content editor model A letter is removed from allowed actions, but for some reason it seems the name input in header is still editable.

Have you looked at any of the Label data types as a read-only property? Though not sure if it would cover whatever your use case is for limiting naming. I’d assume that’s restricted cause you have to be able to edit the name in order to create a node. So is what you’re actually needing is a ‘no renaming’ restriction?

You can programmatically set the value of a label and it is by default not an editable field but would be a property visible on the node.

Yes, it is however not possible to replace name field in header with a label - at least not from within notification handler.

I can use Label property editor for custom properties on the content type, but it is no issue making the readonly for most property editors supporting readonly mode.

The issue here is specificially to make name field in header readonly.

It seems to be because <umb-editor-content-header> pass in following properties :

But vm.editor doesn’t contain the modified content model with adjusted actions.

If using vm.content here instead of vm.editor.content the name fields is readonly.

This issue has now been resolved in