– If you want to call static block in cms page:
1 |
{{block class="Magento\Cms\Block\Block" block_id="block_identifier"}} |
1 |
< ?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?> |
1 2 3 4 5 6 7 |
<referencecontainer name="sidebar.additional"> <block class="Magento\Cms\Block\Block" name="block_id"> <arguments> <argument name="block_id" xsi:type="string">block_id</argument> </arguments> </block> </referencecontainer> |