Sylius logo
$0.00
SyliusCmsPlugin
Some block name Some block name

Blocks

The left block is rendered with the usage of the particular controller like this:

{{ render(path('bitbag_shop_block_render', {'code' : 'homepage_header_image'})) }}

It also can take template as a parameter, but it's optional. In this case, it works the same as below Twig functions. Sometimes you might want the block to render in a different template, that's where the controller is useful.

The other three blocks, including this one you are reading right now, are using Twig helper method.

{{ bitbag_render_block('homepage_intro') }}
{{ bitbag_render_block('homepage_banner_image_1') }}
{{ bitbag_render_block('homepage_banner_image_2') }}

The block with this nice woman is linked to another page. Click her and see what happens. No pornography included. I promise

Click one of the below products to see what you can do with the blocks in your product view!