{% block element_product_listing %}
{# @var result \Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult #}
{% set searchResult = cbaxModulManufacturers['products'] %}
{% set currentPage = ((searchResult.criteria.offset + 1) / searchResult.criteria.limit )|round(0, 'ceil') %}
{% set paginationConfig = { page: currentPage }|json_encode %}
{% set slot = page.cmsPage.firstElementOfType('cbax-product-listing') %}
{% set filterUrl = null %}
{% set dataUrl = null %}
{% if searchResult.currentFilters.navigationId %}
{% set filterUrl = url('frontend.cms.navigation.filter', { navigationId: searchResult.currentFilters.navigationId }) %}
{% set dataUrl = url('frontend.cms.navigation.page', { navigationId: searchResult.currentFilters.navigationId }) %}
{% endif %}
{% set dataUrl = seoUrl('frontend.cbax.manufacturer.detail', { id: dataUrlExtraParam|slice(1)}) %}
{% set sidebar = sectionType == 'sidebar' ? true : false %}
{% set params = { slots: slot.id } %}
{# aktive Filter DIV - wird für die Pagenierung benötigt #}
<div class="filter-panel-active-container"></div>
<div class="manufacturer-detail-product-listing">
<div class="cms-element-product-listing-wrapper"
data-listing-pagination="true"
data-listing-pagination-options='{{ paginationConfig }}'
data-listing="true"
data-listing-options='{
"sidebar": "{{ sidebar }}",
"params": {{ params|json_encode }},
"dataUrl": "{{ dataUrl }}",
"filterUrl": "{{ filterUrl }}",
"snippets": {
"resetAllButtonText": "{{ 'listing.filterPanelResetAll'|trans }}"
}
}'>
<div class="cms-element-product-listing">
{% if searchResult.total > 0 %}
{% block element_product_listing_pagination_nav_actions %}
<div class="cms-element-product-listing-actions row justify-content-between">
{% block element_product_listing_pagination_nav_top %}
{% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
entities: searchResult,
criteria: searchResult.criteria
} %}
{% endblock %}
</div>
{% endblock %}
{% endif %}
{% block element_product_listing_row %}
<div class="row cms-listing-row js-listing-wrapper">
{% if searchResult.total > 0 %}
{% block element_product_listing_col %}
{% for product in searchResult %}
<div class="cms-listing-col {{ productBoxStyle }}">
{% block element_product_listing_box %}
{% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
'layout': productBoxLayout,
'displayMode': productBoxLayout
} %}
{% endblock %}
</div>
{% endfor %}
{% endblock %}
{% else %}
{% block element_product_listing_col_empty %}
<div class="cms-listing-col col-12">
{% block element_product_listing_col_empty_alert %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
type: 'info',
content: 'listing.emptyResultMessage'|trans
} %}
{% endblock %}
</div>
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% if searchResult.total > 0 %}
{% block element_product_listing_pagination_nav_bottom %}
<div class="cms-element-product-listing-actions row justify-content-between">
{% sw_include '@Storefront/storefront/component/pagination.html.twig' with {
entities: searchResult,
criteria: searchResult.criteria
} %}
</div>
{% endblock %}
{% endif %}
</div>
</div>
</div>
{% endblock %}