templates/product/category.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.         {% if editmode %}
  6.             {% embed('includes/editmode-settings.html.twig') %}
  7.                 {% block settings %}
  8.                     <div class="row">
  9.                         <div class="col-12">
  10.                             {{ pimcore_relations('product-categories', {
  11.                                 title: 'Use ProductCategory-Objects or -Snippets',
  12.                                 types: ['document', 'object'],
  13.                                 subtypes: {
  14.                                     'document': ['snippet'],
  15.                                     'object': ['object'],
  16.                                 },
  17.                                 'classes': ['ProductCategory'],
  18.                             }) }}
  19.                         </div>
  20.                     </div>
  21.                 {% endblock %}
  22.             {% endembed %}
  23.         {% endif %}
  24.         <section class="container">
  25.             <div class="row">
  26.                 <div class="col-md-8">
  27.                     {{ include('includes/title-blocks/title-block.html.twig', {
  28.                         titleTag: 'h1',
  29.                         introStyle: 'description-text'
  30.                     }) }}
  31.                     </div>
  32.                 </div>
  33.         </section>
  34.         <section class="product-category-teaser-area container content-block">
  35.             <div class="row gy-2">
  36.                 {% for categoryTeaser in pimcore_relations('product-categories') %}
  37.                     <div class="col-xl-3 col-md-4 col-6">
  38.                         {% if categoryTeaser is instanceof('\\Pimcore\\Model\\DataObject\\ProductCategory') %}
  39.                             {{ include('includes/teaser/product-category-teaser.html.twig') }}
  40.                         {% else %}
  41.                             {{ pimcore_inc(categoryTeaser) }}
  42.                         {% endif %}
  43.                     </div>
  44.                 {% endfor %}
  45.             </div>
  46.         </section>
  47.         {{ include('includes/areablock.html.twig') }}
  48.     </main>
  49. {% endblock %}