{% 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 %}