templates/areas/personalized-product-teaser/view.html.twig line 1

Open in your IDE?
  1. <section class="teaser-row-container pt-5 pb-3 bg-light text-center">
  2.     <div class="container">
  3.         <h2>{{ pimcore_input('productTeaserTitle', {'placeholder':'Enter Title'}) }}</h2>
  4.         {% if editmode %}
  5.             <div class="alert alert-info">
  6.                 <div class="text-left">
  7.                     <strong>Teaser with personalized content:</strong>
  8.                     <br/>
  9.                     Content of this teaser will be personalized for visitor if possible. Personalization parameters
  10.                     are <strong>manufactures</strong> and <strong>car classes</strong> of visited car detail pages.
  11.                     <br/>
  12.                     Manually assigned cars are fallback and will be displayed when no personalization is possible.
  13.                 </div>
  14.             </div>
  15.         {% endif %}
  16.         <div class="row mb-3 text-left">
  17.             {% if editmode or not usePersonalizedData %}
  18.                 {% for i in 0..2 %}
  19.                     <div class="{{ editmode ? 'teaser-col' : 'col-md-4 d-flex align-items-stretch flex-column' }}">
  20.                         {{
  21.                             pimcore_renderlet(('productTeaser'~i), {
  22.                                 type: 'object',
  23.                                 editmode: editmode,
  24.                                 controller: 'App\\Controller\\ProductController::productTeaserAction',
  25.                                 title: 'Drag a product here',
  26.                                 height : 'auto',
  27.                                 width: '100%'
  28.                             })
  29.                         }}
  30.                     </div>
  31.                 {% endfor %}
  32.             {% else %}
  33.                 {% for product in productList %}
  34.                     <div class="col-md-4 d-flex align-items-stretch flex-column">
  35.                         {% include 'product/product_teaser.html.twig' with {'product': product} %}
  36.                     </div>
  37.                 {% endfor %}
  38.             {% endif %}
  39.         </div>
  40.     </div>
  41. </section>