An error occurred while processing the template.
Method public static com.liferay.portlet.documentlibrary.model.DLFileEntry com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(java.lang.String,long) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<style type="text/css"> 
2.custom_width { 
3    width: 300px; 
4
5</style> 
6<div class="page-bg-img"> 
7	<img src="${Background_Image.getData()}"> 
8</div> 
9 
10<div class="mainContent"> 
11	 
12	<div class="container" style="overflow: hidden;"> 
13	 
14		<div class="landing-page-content persist-area"> 
15 
16			<div class="row"> 
17				<div class="col-xs-4" id="myScrollspy"> 
18					<div class="press-release-year"> 
19						<ul class="nav affix-top" data-spy="affix" data-offset-top="280"> 
20							<#if Download_Item_Category.getSiblings()?has_content> 
21			                <#list Download_Item_Category.getSiblings() as cur_Content> 
22					        <#if cur_Content.Download_Item_Category_Name.getData()?has_content &&  "${cur_Content.Download_Item_Category_Name.getData()}" != "Corporate Information"> 
23			        	<li><a class="news-jumper custom_width" href="#news-${cur_Content.Download_Item_Category_Name.getData()?replace(' ','')?replace('&','')}"><span>${cur_Content.Download_Item_Category_Name.getData()}</span></a></li> 
24			   				 </#if> 
25							</#list> 
26							</#if> 
27						</ul> 
28					</div> 
29				</div> 
30 
31				<div class="col-xs-8"> 
32					<div class="press-release-news-holder"> 
33						<h1>${Title.getData()}</h1> 
34						<#-- <h4><strong>${Sub_Title.getData()}</strong></h4> --> 
35						<#-- Start check for any download items for each category, and add to the respective lists --> 
36						<#-- Check if first download item has a file name, if not, means no download items and do not show any downloads--> 
37						<#if Download_Item_Category.Download_Item_Category_Name.getData()?has_content> 
38							<#-- Start of repeatable downloads --> 
39								<#if Download_Item_Category.getSiblings()?has_content> 
40									<#list Download_Item_Category.getSiblings() as cur_Download > 
41										<#if cur_Download.Download_Item_Category_Name.getData()?has_content &&  "${cur_Download.Download_Item_Category_Name.getData()}" != "Corporate Information"> 
42											<div class="press-release-section" id="news-${cur_Download.Download_Item_Category_Name.getData()?replace(' ','')?replace('&','')}"> 
43										        <h3><strong>${cur_Download.Download_Item_Category_Name.getData()}</strong></h3> 
44											        <#if cur_Download.Download_Item.Download_Item_File_Name.getData()?has_content> 
45											        <#assign List = []> 
46											        <#list cur_Download.Download_Item.getSiblings() as cur_List_Download> 
47											             
48												    <#assign List = List + [{"fileName":"${cur_List_Download.Download_Item_File_Name.getData()}", "file":cur_List_Download.Download_Item_File.getData()}]> 
49												    </#list> 
50												    <#if List?has_content>						    				  
51								    				    <#list List?sort_by("fileName") as downloadItem> 
52								    					<@displayDownload downloadItem/> 
53								    			        </#list> 
54										            </#if> 
55									        </div> 
56							            </#if> 
57							           </#if>  
58									</#list> 
59							<a href="#0" class="cd-top">Top</a> 
60								</#if>  
61							<#-- End of repeatable downloads --> 
62						</#if> 
63					</div> 
64				</div> 
65 
66			</div> 
67		</div> 
68	</div> 
69</div> 
70					<#-- End check for any download items for each category, and add to the respective lists --> 
71 
72					<#-- Start creation of macro. A macro is similar to a method, in that it can be reused over and over again. In this case, the macro name(method name) is 'displayDownload' and the parameter is a 'downloadItem' --> 
73					<#macro displayDownload downloadItem> 
74					<#if downloadItem.file?has_content> 
75					<div class="download-holder"> 
76						<div class="download-row"> 
77							<div class="download-img"> 
78								<a href="${downloadItem.file}"> 
79									<#-- <img src="images/icon-download-file.svg">--> 
80									<i></i> 
81								</a> 
82							</div> 
83							<div class="download-info"> 
84								<#-- Logic to extract file data --> 
85								<#assign fileData = "${downloadItem.file}"?split("/")>  
86								<#-- <#assign fileData =  ("${downloadItem.file}"+"/")?split("/")> --> 
87 
88								<#assign groupId = "${fileData[2]}"?number> 
89								<#assign uuId = "${fileData[5]}"> 
90								 
91								<#assign fileEntry = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]> 
92								<#assign file = fileEntry.getFileEntryByUuidAndGroupId(uuId,groupId) > 
93								<#assign fileTitle = file.getTitle()> 
94								<#assign fileSize = file.getSize()> 
95								<#assign fileExtension = file.getExtension()> 
96								<#assign fileCreateDate = file.getCreateDate()?string("dd MMM yyyy")> 
97								<#assign fileModifiedDate = file.getModifiedDate()?string("dd MMM yyyy")> 
98								 
99 
100								<h4><a target="_blank" href="${downloadItem.file}">${downloadItem.fileName}</a></h4> 
101								<p><small> 
102								<#-- File extension logic to determine if file is PDF, EXCEL, WORD, PPT OR ZIP--> 
103								<#if fileExtension == "pdf"> 
104								<span class="file-type file-pdf">PDF</span>  
105								<#elseif fileExtension == "xls" || fileExtension == "xlsx"> 
106								<span class="file-type file-excel">EXCEL</span>  
107								<#elseif fileExtension == "doc" || fileExtension == "docx"> 
108								<span class="file-type file-word">WORD</span>  
109								<#elseif fileExtension == "ppt" || fileExtension == "pptx"> 
110								<span class="file-type file-powerpoint">PPT</span>  
111								<#elseif fileExtension == "zip"> 
112								<span class="file-type file-zip">ZIP</span>  
113								<#else> 
114								<span class="file-type file-pdf">"${fileExtension}"?upper_case</span>  
115								</#if> 
116								<#-- if fileSize(in bytes) >= 1MB, display as MB, else display as KB --> 
117								<#if fileSize gte 1048576> 
118									<#assign fileSize = fileSize/1048576> 
119									| <span>${fileSize?string["0.##"]} MB</span>  
120								<#else> 
121									<#assign fileSize = fileSize/1024> 
122									| <span>${fileSize?string["0.##"]} KB</span>  
123								</#if> 
124								| <span>${fileModifiedDate}</span> 
125								</small></p> 
126							</div> 
127						</div> 
128					</div> 
129 
130</#if> 
131</#macro> 
132<#-- End creation of macro --> 
133<script type="text/javascript"> 
134	$(function() { 
135		$('a.news-jumper[href*=#]:not([href=#])').click( 
136				function() { 
137					if (location.pathname.replace(/^\//, '') == this.pathname 
138							.replace(/^\//, '') 
139							&& location.hostname == this.hostname) { 
140						var target = $(this.hash); 
141						console.log(target); 
142						target = target.length ? target : $('[name=' 
143								+ this.hash.slice(1) + ']'); 
144						if (target.length) { 
145							$('html,body').animate({ 
146								scrollTop : target.offset().top 
147							}, 1000); 
148							return false; 
149
150
151				}); 
152	}); 
153</script> 
154 
155<script type="text/javascript"> 
156	$('.press-release-year .nav').affix({ 
157		offset : { 
158			top : 280, 
159			/*bottom: function () { 
160				return (this.bottom = $('.footer').outerHeight(true)+100) 
161			}*/ 
162			bottom : 750 
163
164	}) 
165</script> 
166<script type="text/javascript"> 
167	window.onload = function() { 
168		var num = roll(); 
169		if (num == 0) { 
170			$(".press-release-year>ul>li:last").children("a")[0] 
171			.click(); 
172		} else { 
173			$(".press-release-year>ul>li:eq(" + (num - 1) + ")").children("a")[0] 
174					.click(); 
175
176
177 
178	function roll() { 
179		var url = location.search; 
180		var theRequest = new Object(); 
181		if (url.indexOf("?") != -1) { 
182			var str = url.substr(1); 
183			strs = str.split("&"); 
184			for (var i = 0; i < strs.length; i++) { 
185				theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); 
186
187
188		var id = theRequest.listNum; 
189		if (id != null) { 
190			return id; 
191
192
193</script>