Try our conversational search powered by Generative AI!

How to hide/ restric a block from its type creation while going to creat new block

Vote:
 

Hi , i have created a block which i m using as a property of a page. But i dont want when content editor will create any new  block , he will be able to see my block as template. Simply i want to hide this from new block creation option as a template. Is this possible. Can any one help me how to do this.

#151609
Jul 31, 2016 17:18
Vote:
 

Hi Sourav,

You can set AvailableInEditMode = false:

[ContentType(
    GUID = "339212d4-0084-4c19-b053-8157296d215a",
    AvailableInEditMode = false)]
public class MyBlock : BlockData
{
    // ...
}

Hope this helps

#151612
Jul 31, 2016 19:16
* 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.