{% extends '@SyliusShop/layout.html.twig' %} {%- block title -%} {% if page.title is not empty %} {{ page.title }} {% else %} {{ parent() }} {% endif %} {%- endblock -%} {% block metatags %} {% if page.metaKeywords is not empty %} {% endif %} {% if page.metaDescription is not empty %} {% endif %} {% endblock %} {% block content %}

{{ page.name }}

{% if page.image %} {% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %} {% endif %}
{{ bitbag_cms_render_content(page) }}
{% include '@BitBagSyliusCmsPlugin/Shop/Page/Show/_sections.html.twig' %}
{% if page.products|length > 0 %}

{{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}

{% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
{% endif %} {% endblock %}