[#macro renderDocumentCard document] [#assign documentURL = themeDisplay.getPathContext() + "/documents/" + document.getLong("repositoryId")?c + "/" + document.getLong("folderId")?c + "/" + (document.getString("fileName")!"")?url("UTF-8") + "/" + (document.getString("uuid")!"")?url("UTF-8") /] [#assign extension = (document.getString("extension"))!"" /] ${extension?upper_case} [/#macro] [#assign documents = [ configuration.document1, configuration.document2, configuration.document3, configuration.document4 ] /] [#assign hasDocuments = false /] [#list documents as document] [#if document.getLong("classPK") > 0] [#assign hasDocuments = true /] [#break] [/#if] [/#list]