{% extends "layout/default.html.twig" %}
{% block content %}
<main id="main-content" role="main" class="{{ not editmode ? 'main-content' }} content-block js-content-visibility content-visibility--auto js-smoothscroll js-affix__container">
{{ include('navigation/breadcrumb.html.twig') }}
<section class="container">
{{ include('includes/title-blocks/title-block.html.twig', {
titleTag: 'h1',
introStyle: 'description-text'
}) }}
</section>
{{ include('includes/areablock.html.twig') }}
{% if editmode %}
{% embed('includes/editmode-settings.html.twig') %}
{% block settings %}
<div class="h4">Pre-filter:</div>
<div class="row">
<div class="col-12">
<div class="mb-2">
Products of the following categories get displayed. If empty, no Products will be displayed.<br>
Sorting works according to the order of the categories. And inside the category we sort Products by a defined attribute in the Product class.
</div>
{{ pimcore_relations('categories', {
"types": ["object"],
"subtypes": {
"object": ["object"]
},
"classes": ["ProductCategory"],
"title": "ProductCategory objects"
}) }}
</div>
</div>
{% endblock %}
{% endembed %}
{% endif %}
<section class="js-product-grid product-grid content-block" data-product-grid-ajax-url="{{ document.fullpath }}?ajax=1">
<div class="container">
<div id="auto-submit-text" class="visually-hidden">
{{ 'product.overview.This gets reloaded if something changes'|trans }}
</div>
{{ include('includes/overlays/loading-overlay.html.twig', {
className: 'js-product-grid__loading',
hidden: true
}) }}
<section class="js-product-grid__container" aria-live="off" aria-describedby="auto-submit-text">
{{ include('includes/product/product-content.html.twig', {
'products': products,
}) }}
</section>
</div>
</section>
{{ include('includes/areablock.html.twig', {'areaName': 'areasBottom'}) }}
</main>
{{ pimcore_placeholder('jsFile').set("js/product") }}
{% endblock %}