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


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.

Jul 31, 2016 17:18

Hi Sourav,

You can set AvailableInEditMode = false:

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

Hope this helps

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.