Hello is it possible to lock the grid block in the Block Templates?
For example, everything just before the grid is locked, as soon I insert grid in my template, each element into the grid is free again, even user can add new blocks.
Here is a sample of my code.
Note: If I don’t use the grid, if I use just a container, elements are locked.
`$post_type_object->template = array(
array(‘core/group’, array(
‘templateLock’ => ‘all’,
), array(
array( ‘generateblocks/container’,array(
‘innerContainer’ => ‘Full width’,
‘minHeight’ => ‘512’,
‘templateLock’ => true,
‘minHeightUnit’ => ‘px’,
‘backgroundColor’ =>’#cf2e2e’,
), array(
array( ‘generateblocks/grid’,array(
‘columns’ => ‘1’,
), array(
array( ‘generateblocks/container’,array(
‘isGrid’ =>true,
‘width’ =>’100′,
), array(
array( ‘core/paragraph’, array(
‘placeholder’ => ‘Add Description…’,
) ),
array(‘generateblocks/headline’, array(
‘content’ => ‘Enter Title’,
‘cssClasses’ => ‘headline__for__posts’,
‘element’ => ‘h1’,
)),
)),
)),
)),
)),
);`