NOMIKO PLAISIO

Δελτία Τύπου

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> newsfrom  [in template "20097#20123#45856" at line 138, column 80]

----
Tip: If the failing expression is known to 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: ${newsfrom}  [in template "20097#20123#45856" at line 138, column 78]
----
1<#-- 
2Widget templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8		<#assign myTranslations = {  
9					 									"en_US_page": "Page",  
10					 									"en_GB_page": "Page",  
11					 									"el_GR_page": "Σελίδα", 
12														"el_US_page": "Σελίδα", 
13					 									"_page": "Σελίδα", 
14					 									"en_US_of": "of",  
15					 									"en_GB_of": "of",  
16					 									"el_GR_of": "από", 
17														"el_US_of": "από", 
18 
19					 									"_of": "από", 
20					 					 				"en_US_Showing": "Showing",  
21					 									"en_GB_Showing": "Showing",  
22					 									"el_GR_Showing": "Εμφάνιση", 
23														"el_US_Showing": "Εμφάνιση", 
24 
25					 									"_Showing": "Εμφάνιση", 
26					 					 				"en_US_results": "results",  
27					 									"en_GB_results": "results",  
28					 									"el_GR_results": "αποτελέσματα", 
29													    "el_US_results": "αποτελέσματα", 
30 
31					 									"_results": "results", 
32					 									"en_US_First": "First",  
33					 									"en_GB_First": "First",  
34					 									"el_GR_First": "Πρώτη", 
35														"el_US_First": "Πρώτη", 
36 
37					 									"_First": "Πρώτη", 
38					 					 				"en_US_Next": "Next →",  
39					 									"en_GB_Next": "Next →",  
40					 									"el_GR_Next": "Επόμενο →", 
41														"el_US_Next": "Επόμενο →", 
42 
43					 									"_Next": "Επόμενο →", 
44					 									"_Last": "Last", 
45					 					 				"en_US_Last": "Last",  
46					 									"en_GB_Last": "Last",  
47					 									"el_GR_Last": "Τελευταία", 
48 
49					 									"el_US_Last": "Τελευταία", 
50														 
51					 									"_Last": "Τελευταία", 
52					  
53					 					 				"en_US_Previous": "← Previous",  
54					 									"en_GB_Previous": "← Previous",  
55					 									"el_GR_Previous": "← Previous", 
56					 									"el_GR_Previous": "← Προηγούμενο", 
57														"el_US_Previous": "← Προηγούμενο" 
58 
59					 }> 
60		<#assign curr = paramUtil.getInteger(renderRequest, "curr", 1) />	 
61		<@liferay_portlet["renderURL"] var="renderURL"></@> 
62		<#assign 
63						 PAGE_DELTA = 5 
64						 datacurrentasset = 1 
65						 datatotalassets = 5 
66						 totalnews = 0 
67						 totalpages = 0 
68		/>				  
69	 
70		<form name="newsPageForm" id="newsPageForm" action='${renderURL}' method="post"> 
71					<input type="hidden" name='${renderResponse.getNamespace()}curr' id="curr" value=""/> 
72		</form> 
73			 
74<table class="table table-condensed"> 
75	<thead class="rounded6"> 
76		<tr> 
77			<th id="targetNavigationElement" colspan="2" class="nav-pager"> </th> 
78			<th class="text-center"> 
79				<a href=""><img src="/o/hlcliferay-theme/images/hlc/icon-settings.png" width="18" height="18"/> 
80			</th> 
81		</tr> 
82	</thead> 
83		<tbody> 
84			<#if entries?has_content> 
85				<#assign totalnews = entries?size /> 
86				<#assign newsfrom = ((curr -1)  * PAGE_DELTA) + 1 
87				newsto = ((curr -1)  * PAGE_DELTA) + PAGE_DELTA /> 
88				<#if newsto &gt; totalnews> 
89					<#assign newsto = totalnews /> 
90				</#if> 
91				<#list entries as curEntry> 
92					<#if curEntry?index &lt; newsfrom -1 > 
93						<#continue> 
94					</#if> 
95					<#if curEntry?index &gt; newsto > 
96						<#continue> 
97					</#if> 
98				<#assign  
99						entry = entry 
100						assetRenderer = curEntry.getAssetRenderer() 
101						journalArticle = assetRenderer.getAssetObject()   
102						document = saxReaderUtil.read(journalArticle.getContentByLocale(themeDisplay.getLocale().toString()))  
103						viewURL	=	assetPublisherHelper.getAssetViewURL(renderRequest,renderResponse,curEntry) 
104						rootElement = document.getRootElement()  
105						xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='RichText94908971']") 
106						shortDescription = xPathSelector.selectSingleNode(rootElement).getStringValue()  
107	 
108						xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Date17067106']") 
109						dateString = xPathSelector.selectSingleNode(rootElement).getStringValue()  
110						/> 
111						<#assign Date17067106_DateObj = dateUtil.parseDate("yyyy-MM-dd", dateString?trim, locale)> 
112 
113						<tr data-currentasset="${datacurrentasset}" data-totalassets="${datatotalassets}"> 
114							<td class="date">${dateUtil.getDate(Date17067106_DateObj, "dd MMM yyyy", locale)}</td> 
115							<td> 
116								<a href="${viewURL}">${shortDescription}</a> 
117							</td> 
118							<td class="text-center"></td> 
119						</tr> 
120						<#assign	datacurrentasset = datacurrentasset +1/>	 
121						</#list> 
122			</#if> 
123	</tbody> 
124	</table> 
125	 
126	<#assign lastpage = ((totalnews - ( totalnews % PAGE_DELTA )) / PAGE_DELTA) +1 />			 
127	<div class="container taglib-page-iterator"> 
128				<div class="clearfix lfr-pagination"> 
129					<div class="lfr-pagination-config">	 
130						<select name="selectpage" id="selectpage" onchange="getpageselection(this)"> 
131							<option value=""><@translate word="page"/> ${curr} <@translate word="of"/> ${lastpage}</option> 
132							<#list 1..lastpage as x> 
133								<option value="${x}">${x}</option> 
134							</#list> 
135						</select> 
136					</div>		 
137						<small class="search-results"> 
138						<@translate word="Showing"/> ${newsfrom}-${newsto} <@translate word="of"/> ${totalnews} <@translate word="results"/> 
139						</small> 
140						<div> 
141							<ul class="news-pager lfr-pagination-buttons"> 
142								<#if curr == 1> 
143									<li class="disabled first"><a href="javascript:void"  class="prev"><@translate word="First"/></a></li> 
144									<li class="disabled"><a href="javascript:void"  class="prev"><@translate word="Previous"/></a></li> 
145								<#else>	 
146									<li class="first"><a href="javascript:void"  onClick="javascript:submitNewsPageForm(1)"><@translate word="First"/></a></li> 
147									<li class=""><a href="javascript:void"  onClick="javascript:submitNewsPageForm(${curr -1})"><@translate word="Previous"/></a></li> 
148								</#if> 
149								<#if curr * PAGE_DELTA &lt; totalnews >	 
150									<li class=""><a href="javascript:void"  class="next" onClick="javascript:submitNewsPageForm(${curr +1})"><@translate word="Next"/></a></li> 
151									<li class="last"><a href="javascript:void"  class="next" onClick="javascript:submitNewsPageForm(${lastpage})"><@translate word="Last"/></a></li> 
152								<#else>	 
153									<li class="disabled "><a href="javascript:void"  class="next" ><@translate word="Next"/></a></li> 
154									<li class="disabled last"><a href="javascript:void"  class="next" ><@translate word="Last"/></a></li> 
155								</#if> 
156							</ul>		 
157						</div>	 
158				</div> 
159		</div> 
160			 
161<script> 
162function submitNewsPageForm(selectedPage){ 
163	document.getElementById("curr").value = selectedPage; 
164	document.getElementById("newsPageForm").submit(); 
165
166 
167function getpageselection(selectObject) { 
168  var value = selectObject.value;   
169	submitNewsPageForm(value); 
170}	 
171</script>	 
172	 
173	<#-- 
174	        <div class="pager"> 
175            <%if(selectedPage >	1) {%> 
176                <a href="javascript:void" onClick="javascript:submitNetworkForm('<%=selectedPage-1%>', 'false');" class="prev"></a> 
177            <%}%> 
178            <% if ((selectedPage>HLConstants.PAGE_DELTA)  ) {%> 
179                <a href="javascript:void"  onClick="javascript:submitNetworkForm(<%=1%>, 'false');">1</a> 
180                ... 
181            <% } 
182            for (int i=(selectedPage -(selectedPage% HLConstants.PAGE_DELTA)==0)?1:selectedPage -(selectedPage% HLConstants.PAGE_DELTA); i<=selectedPage -(selectedPage% HLConstants.PAGE_DELTA) + 5; i++) { 
183            if(i>pages){ 
184                break; 
185
186            %> 
187                <a href="javascript:void" onClick="javascript:submitNetworkForm('<%=i%>', 'false');"<%if (i==selectedPage) out.print(" class=\"active\"");%>><%=i%></a> 
188            <% } %> 
189            <% if (selectedPage < pages - (pages%HLConstants.PAGE_DELTA)) {%> 
190                ... 
191                <a  href="javascript:void" onClick="javascript:submitNetworkForm(<%=pages%>, 'false');"><%=pages%></a> 
192            <% } %> 
193            <% if ( selectedPage<pages ) {%> 
194                <a  href="javascript:void" onClick="javascript:submitNetworkForm('<%=(selectedPage + 1< pages )?selectedPage+1:pages%>', 'false');" class="next"></a> 
195            <% } %> 
196 
197        </div> 
198--> 
199<#macro translate word> 
200<#if locale =="en_GB"  || locale =="en_US" ||  locale =="el_GR" || locale =="el_US"> 
201	${myTranslations[locale+"_"+word]} 
202<#else> 
203	${myTranslations["_"+word]} 
204</#if>  
205</#macro>