Cataloage de produse

In aceasta sectiune poti gasi cataloagele generale cu produse built-in sau free-standing, pentru descarcare si vizualizare convenabila offline.

O eroare a apărut în timpul procesării șablonului.
Error on line 24, column 33 in 10154#10194#51470
stringUtil.extractLast(document?string,'/') is undefined.
It cannot be assigned to fileEntryUuid
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")> 
2 
3<div class="download-cataloghi"> 
4	<#assign count = 0> 
5	<#assign limit = 1> 
6 
7	<#if entries?has_content> 
8 
9		<#list entries as entry> 
10		 
11		 
12			<#if entry.getClassNameId() == portalUtil.getClassNameId("com.liferay.portlet.journal.model.JournalArticle")>   
13			    <#assign renderer = entry.getAssetRenderer()> 
14		        <#assign categories = entry.getCategories()> 
15		       
16		    	<#assign journalArticle = renderer.getArticle()> 		    
17		    	<#assign docXml = saxReaderUtil.read(journalArticle.getContent())> 
18		    	<#assign image = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content[@language-id='${locale}']/text()") /> 
19		    	<#assign altImage = docXml.valueOf("//dynamic-element[@name='altImage']/dynamic-content[@language-id='${locale}']/text()") /> 
20		    	<#assign document = docXml.valueOf("//dynamic-element[@name='document']/dynamic-content[@language-id='${locale}']/text()") /> 
21		    	<#assign rel = ADTUtils.getRelAttribute(themeDisplay, document) /> 
22			    <#assign dataIco = docXml.valueOf("//dynamic-element[@name='dataIco']/dynamic-content[@language-id='${locale}']/text()") /> 
23				 
24				<#assign fileEntryUuid = stringUtil.extractLast(document?string,'/')> 
25				<#assign fileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(fileEntryUuid?string , themeDisplay.getSiteGroupId())> 
26 
27				<#assign exstension = fileEntry.getExtension()> 
28				<#assign dimension = (fileEntry.getSize())/1000000> 
29				 
30 
31				<#if (count?number &gt; limit?number)> 
32					<#if count?number == 2 > 
33						<ul class="elenco-cataloghi"> 
34					</#if> 
35					<#if validator.isNotNull(dataIco) && validator.isNotNull(document)> 
36							<li class="catalogo" data-ico="${dataIco}"> 
37								<div class="inner"> 
38									<div class="detail"> 
39										<h2> 
40											<a href="${document}" ${rel}>${entry.getTitle(locale)}</a> 
41										</h2> 
42					 
43										<p> 
44											<a href="${document}" ${rel}>${entry.getSummary(locale, true)}</a> 
45										</p> 
46									</div> 
47								</div> 
48							</li> 
49						<#if count == (entries?size)>	 
50							</ul> 
51						</#if>	 
52					</#if>		 
53						 
54					<#assign count = count?number + 1> 
55					 
56				<#else> 
57					<#if count?number == 0 > 
58						<div class="cataloghi-generali"> 
59					</#if>	 
60					<div class="box-catalogo"> 
61							<div class="inner"> 
62								<#if validator.isNotNull(image)> 
63									<#if validator.isNotNull(altImage)> 
64										<div class="left"> 
65											<img alt="${altImage}" src="${image}" /> 
66										</div> 
67									<#else> 
68										<div class="left"> 
69											<img src="${image}" /> 
70										</div> 
71									</#if>	 
72								</#if> 
73								<div class="right"> 
74									<h2>${entry.getTitle(locale)}</h2> 
75				 
76									<p>${entry.getSummary(locale, true)}</p> 
77									 
78									<#if validator.isNotNull(document)> 
79										<a href="${document}" ${rel}><span><@liferay.language key="download" /></span><span class="small">${exstension} (${dimension?string["0.#"]} MB)</span> 
80										</a> 
81									</#if>		 
82									 
83								</div> 
84							</div> 
85						<#if count?number == 1>	 
86							</div> 
87						</#if>			 
88						<#assign count = count?number + 1> 
89					</div>	 
90				</#if>	 
91			</#if> 
92		</#list> 
93	</#if> 
94</div>