templates/areas/teaser/view.html.twig line 1

Open in your IDE?
  1. {#
  2. project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
  3. User: erikb
  4. Year: 2022
  5. #}
  6. {% if editmode %}
  7.     <div class="admin-container admin-container--limited-width admin-container--content">
  8.         <div class="admin-container__section">
  9.             <span class="admin-container__title">{{ 'brick.teaser.title'|trans({}, 'admin') }}</span>
  10.         </div>
  11.         <div class="admin-container__configurations">
  12.             <div class="admin-config-item">
  13.                 <span class="admin-config-item__label">{{ 'brick.teaser.option.item'|trans({}, 'admin') }}:</span>
  14.                 {{
  15.                     pimcore_relation('item', {
  16.                         'types': ['document'],
  17.                         'subtypes': {
  18.                             'document': ['page']
  19.                         }
  20.                     })
  21.                 }}
  22.                 <br>
  23.                 <span class="admin-config-item__label">{{ 'brick.teaser.option.display-as'|trans({}, 'admin') }}:</span>
  24.                 {{
  25.                     pimcore_select('display-as', {
  26.                         store: displayAsTypeStore,
  27.                         defaultValue: 'image-title-text',
  28.                         reload: true
  29.                     })
  30.                 }}
  31.             </div>
  32.         </div>
  33.     </div>
  34. {% endif %}
  35. {% if not pimcore_relation('item').isEmpty() %}
  36.     {{
  37.         include('includes/partials/teaser/teaser-' ~ selectedDisplayAsType ~ '.html.twig', {
  38.             url: url,
  39.             image: image,
  40.             title: title,
  41.             text: text
  42.         })
  43.     }}
  44. {% endif %}