{% set index = uri.param('index') %} {% for file in admin.files(true, index) %} {% set the_file = file.file %} {% if the_file.exists and the_file.display() is not empty %}
{% set thumbnail = the_file.display(the_file.extension == 'svg' ? 'source' : 'thumbnail') %} {% if thumbnail %}

{{ file.title }}

{% endif %}
{% endif %} {% endfor %}