templates/product/overview.html.twig line 1

Open in your IDE?
  1. {% extends "layout/default.html.twig" %}
  2. {% block content %}
  3.     <main id="main-content" role="main" class="{{ not editmode ? 'main-content' }} content-block js-content-visibility content-visibility--auto js-smoothscroll js-affix__container">
  4.         {{ include('navigation/breadcrumb.html.twig') }}
  5.         <section class="container">
  6.             {{ include('includes/title-blocks/title-block.html.twig', {
  7.                 titleTag: 'h1',
  8.                 introStyle: 'description-text'
  9.             }) }}
  10.         </section>
  11.         {{ include('includes/areablock.html.twig') }}
  12.         {% if editmode %}
  13.             {% embed('includes/editmode-settings.html.twig') %}
  14.                 {% block settings %}
  15.                 <div class="h4">Pre-filter:</div>
  16.                 <div class="row">
  17.                     <div class="col-12">
  18.                         <div class="mb-2">
  19.                             Products of the following categories get displayed. If empty, no Products will be displayed.<br>
  20.                             Sorting works according to the order of the categories. And inside the category we sort Products by a defined attribute in the Product class.
  21.                         </div>
  22.                         {{ pimcore_relations('categories', {
  23.                             "types": ["object"],
  24.                             "subtypes": {
  25.                                 "object": ["object"]
  26.                             },
  27.                             "classes": ["ProductCategory"],
  28.                             "title": "ProductCategory objects"
  29.                         }) }}
  30.                     </div>
  31.                 </div>
  32.                 {% endblock %}
  33.             {% endembed %}
  34.         {% endif %}
  35.         <section class="js-product-grid product-grid content-block" data-product-grid-ajax-url="{{ document.fullpath }}?ajax=1">
  36.             <div class="container">
  37.                 <div id="auto-submit-text" class="visually-hidden">
  38.                     {{ 'product.overview.This gets reloaded if something changes'|trans }}
  39.                 </div>
  40.                 {{ include('includes/overlays/loading-overlay.html.twig', {
  41.                     className: 'js-product-grid__loading',
  42.                     hidden: true
  43.                 }) }}
  44.                 <section class="js-product-grid__container" aria-live="off" aria-describedby="auto-submit-text">
  45.                     {{ include('includes/product/product-content.html.twig', {
  46.                         'products': products,
  47.                     }) }}
  48.                 </section>
  49.             </div>
  50.         </section>
  51.         {{ include('includes/areablock.html.twig', {'areaName': 'areasBottom'}) }}
  52.     </main>
  53.     {{ pimcore_placeholder('jsFile').set("js/product") }}
  54. {% endblock %}