Documenti
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Documenti e normative della Provincia di Como
Documenti visualizzati: 1
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> DLFileEntryLocalService.fetchDLFileEntry(fileData.classPK) [in template "20101#20127#CARD-DOWNLOAD-TMPL" at line 5, column 8] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: file = DLFileEntryLocalService.fetchD... [in template "20101#20127#CARD-DOWNLOAD-TMPL" at line 5, column 1] - Reached through: #assign-container [in template "20101#20127#CARD-DOWNLOAD-TMPL" at line 2, column 1] ----
1<#assign images_folder = themeDisplay.getPathThemeImages() />
2<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")
3fileData = fileToDownload.data?eval
4
5file = DLFileEntryLocalService.fetchDLFileEntry(fileData.classPK)
6
7filesize = file.getSize()
8/>
9
10<#if filesize gt 0>
11 <#assign filesize = file.getSize() / 1000000 />
12</#if>
13
14
15<div class="card-wrapper card-space card-download">
16 <div class="card card-bg simple-card"><a href="${fileToDownload.getData()}" download>
17 <div class="card-body">
18 <svg class="icon">
19 <use xlink:href="${images_folder}/sprite.svg#it-clip"> </use>
20 </svg>
21 <div class="text-container">
22 <h3>${documentName.getData()} (${filesize?string(",##0.00")} MB)</h3>
23 <p>${documentDescription.getData()}</p>
24 </div>
25 </div></a>
26 </div>
27</div>