templates/product/single.html.twig line 1

Open in your IDE?
  1. {% extends 'app/layout.html.twig' %}
  2. {% block content %}
  3.     {% include 'product/partials/editmode/_options.html.twig' %}
  4.     {% include "app/partials/navigation/_breadcrumbs.html.twig" %}
  5.     {# TODO use `defaultTitle: product.parent.getEditable('content-brick-2.title')` oid ? #}
  6.     {{ pimcore_area('content-brick-2', {
  7.         'type':'content-brick',
  8.         'params':{
  9.             'content-brick': {
  10.                 'product': product,
  11.                 'forceH1' : true,
  12.                 'defaultLayout': 'text-image',
  13.                 'defaultBackgroundColor':'bg-blue-200',
  14.                 'defaultInverted': true,
  15.                 'defaultTitle' : (product.title ?? null) ?: "<span class=\"text-blue\">#{product.name ?? ''}</span> #{product.code ?? ''}",
  16.                 "defaultWysiwyg" : product.description ?? null,
  17.                 "defaultGalleryItems" : product.images ?? [],
  18.                 "overrideImage" : product.images.items[0] ?? null,
  19.                 'showFloatingBanner': true,
  20.             }
  21.         }
  22.     }) }}
  23.     {% include 'product/partials/_product-specifications.html.twig' %}
  24.     {# {% include 'product/partials/_standard-parts.html.twig' %} #}
  25.     {# Temporarily disabled because the current products have linked accessories to 'Old' products. #}
  26.     {# {% include 'product/partials/_standard-accessoires.html.twig' %} #}
  27.     {# {% include 'product/partials/_optional-accessoires.html.twig' %} #}
  28.     {{ pimcore_inc(document.getProperty('productCtaSnippet')) }}
  29.     {{ pimcore_area('product-table-1', {
  30.         'type':'product-table-brick',
  31.         'params': {
  32.             'product-table-brick': {
  33.                 'defaultTitle': "Alternatieven voor {{ productName }}" | trans({
  34.                     '{{ productName }}': " <span class=\"text-blue\">#{ product.name ?? '?' }</span> #{ product.code ?? '?' }"
  35.                 })
  36.             }
  37.         }
  38.     }) }}
  39.     {# @BACKEND TODO: Get FAQ questions out of product.  #}
  40.     {{ pimcore_inc(document.getProperty('faqSnippet')) }}
  41.     {#
  42.     {{ pimcore_area('contact-side-widget', {
  43.         type: 'contact-side-widget-brick'
  44.     }) }}
  45.     #}
  46.     {{ pimcore_areablock('afterContentAreaBlock', {
  47.         "allowed": ['faq-brick'],
  48.         "group" : brickGroups ?? [],
  49.         'params': areaBrickParams ?? []
  50.     } ) }}
  51. {% endblock %}