{% use 'Includes/editmode-layout.html.twig' %} {{ block('editmode_header') }}
{% for i in pimcore_iterate_block(pimcore_block('teasers')) %} {{ pimcore_snippet('teaser') }} {% endfor %}
{% set articleSelect = pimcore_select('blogArticles', { width: 70, store: [[1,1],[2,2],[3,3]] }) %} {% if editmode %}

How many blog articles should be listed (set 0 to hide the box):


{{ articleSelect|raw }}
{% else %} {% set count = articleSelect.getData() %} {% if count is defined and count > 0 %} {{ pimcore_action('sidebarBox', 'Blog', null, { items: count }) }} {% endif %} {% endif %} {{ block('editmode_footer') }}