{% sw_extends '@Storefront/storefront/page/content/product-detail.html.twig' %}
{% block cms_breadcrumb %}
{% set headerView = '' %}
{% for section in page.cmsPage.sections %}
{% if section.name == 'productgroups' %}
{% set headerView = 'productgroups' %}
{% endif %}
{% endfor %}
{% if headerView == '' and (config('SelfdelveCms.config.configuratorCmsPageName') == page.cmsPage.name) %}
{% set headerView = 'configurator' %}
{% endif %}
{% if headerView == 'productgroups' %}
{# Product group boxes #}
{% block cms_product_teaser %}
<div class="cms-section cms-section-product-teaser">
<div class="boxed">
<div class="row">
<div class="col-12 col-lg-6 order-1 order-lg-0">
{% block cms_product_teaser_breadcrumb %}
<div class="breadcrumb cms-breadcrumb container">
{% sw_include '@Storefront/storefront/layout/breadcrumb.html.twig' with {
context: context,
category: page.product.seoCategory
} only %}
</div>
{% endblock %}
</div>
<div class="col-12 col-lg-6 order-0 order-lg-1">
<div class="cms-section-category-teaser-productgroups">
{% for section in page.cmsPage.sections %}
{% if section.name == 'productgroups' %}
{% sw_include "@Storefront/storefront/section/cms-section-" ~ section.type ~ ".html.twig" %}
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% elseif headerView == 'configurator' %}
{# Hide breadcrumbs on configurator pages #}
{% else %}
{# Default #}
{{ parent() }}
{% endif %}
{% endblock %}