{% extends 'layout.html.twig' %} {% block content %} {% if editmode %}
Specify the parent folder here (default is home) {{ pimcore_href('parentFolder') }}
{% endif %}
{% set thumbnailOptions = { width: 180, height: 180, cover: true } %} {% for asset in list %} {# @var asset \Pimcore\Model\Asset #} {% if asset.getType() in ['video', 'image', 'document'] %}
{% if asset is instanceof('\\Pimcore\\Model\\Asset\\Image') %} {{ asset.getThumbnail(thumbnailOptions).getHTML({ class: 'thumbnail' })|raw }} {% else %} {% set thumbnail = asset.getImageThumbnail(thumbnailOptions) %} {% endif %}
{% endif %} {% endfor %}
{% endblock %}