Eduki publikatzailea
Atzealdea

Akta 13 - 2019/09/26

Errorea gertatu da txantiloia prozesatzerakoan.
Error on line 27, column 33 in 21222#21260#3791211
getFileEntry(cur_document.data) is undefined.
It cannot be assigned to fileEntry
1<!-- IDIOMAS --> 
2<#include "${templatesPath}/3765909" /> 
3 
4<#assign fileEntryService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") > 
5<#assign textFormatter = staticUtil["com.liferay.portal.kernel.util.TextFormatter"] > 
6 
7<div class="container"> 
8	<div class="row"> 
9		<div class="col-xs-12"> 
10            <div class="zt-box-section-header"> 
11				<h1>${title.data}</h1> 
12			</div> 
13			<div> 
14				<h2>${i18nInforacionG}</h2> 
15				<p>${description.data}</p> 
16			</div> 
17		</div> 
18	</div> 
19	<div class="row"> 
20    	<div class="col-xs-12"> 
21    	    <#if !validator.equals("", document.data)> 
22        	    <h2 class="zt-h2-text">${i18nDeskargatzeko}</h2> 
23        	    <div class="thumbnails"> 
24                    <#if document.getSiblings()?has_content> 
25        	            <#list document.getSiblings() as cur_document> 
26        	                <#if !validator.equals("", cur_document.data)> 
27            	                <#assign fileEntry = getFileEntry(cur_document.data) > 
28                                <#assign size = textFormatter.formatStorageSize(fileEntry.size, locale) > 
29                                <div class="col-xs-4 col-sm-2"> 
30    								<a href="${cur_document.data}" class="thumbnail"><img src="${cur_document.preview.data}" alt="" /></a> 
31    								<a href="${cur_document.data}"><p>${cur_document.documentTitle.data} (${fileEntry.extension?upper_case} ${size})</p></a> 
32    							</div> 
33                        	</#if> 
34        	            </#list> 
35                    </#if> 
36                </div> 
37            </#if> 
38        </div> 
39	</div> 
40</div> 
41 
42<#function getFileEntry url > 
43  <#assign parts = url?split("/")> 
44   
45  <#assign group_id = getterUtil.getLong(parts[2]) > 
46   
47  <#assign parts = parts[5]?split("?") > 
48  <#assign uuid = parts[0] > 
49   
50  <#return fileEntryService.getDLFileEntryByUuidAndGroupId(uuid?string, group_id) /> 
51</#function> 

Web edukia bistaratu

Bilatuenak

  • Larrialdiak
    112
  • Udaltzaingoa
    943 005 115
  • Udal Informazioa
    943 005 100
    Udal Informazioa Zarauztik
    010