Try our conversational search powered by Generative AI!

Default text for block names


Is there a way to set default text for block names that cannot be edited by the editor so that developers can add to blocks a descriptive text of what type of block it is? For example, if I had a block type of "Slide" and if the editor creates a slide block and they give it a name of "Primary Ad for March" then in the Assets pane, it's displayed as "slide: Primary Ad for March". I know you can hover over the block to see its type, but this would be nice in some circumstances.

Mar 31, 2017 16:57

Hi Nathan

You can try overridding the SetDefault method on the block definition where you should be able to work with the content name.

You can also hook into the IContentEvents.ContentCreating event and work with the block there.


Mar 31, 2017 17:42
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.