Elenco Notizie
An error occurred while processing the template.
Error on line 13, column 5 in 20154#20194#103353
themeDisplay.getURLCurrent()?split("idnews=")[1] is undefined.
It cannot be assigned to idnews
1<#-- 
2Application display 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   
9<#assign path = themeDisplay.getURLCurrent()?split("?")[0] /> 
10<#if path = "/media/speciali" > 
11 
12<#else> 
13    <#assign idnews = themeDisplay.getURLCurrent()?split("idnews=")[1] /> 
14    <div class="titolopage">Notizie correlate</div> 
15    <#if entries?has_content> 
16    <ul class="elenco"> 
17    	<#list entries as entry> 
18            <#assign assetRenderer = entry.getAssetRenderer() /> 
19             
20            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
21             
22            <#if assetLinkBehavior != "showFullContent"> 
23            	<#assign viewviewURLURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
24            </#if> 
25            <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
26            <#assign titolo = docXml.valueOf("//dynamic-element[@name='titolo_news']") /> 
27            <#assign data = docXml.valueOf("//dynamic-element[@name='data_news']") /> 
28            <#assign data_news_Data = getterUtil.getLong(data)> 
29            <#assign data_news_DateObj = dateUtil.newDate(data_news_Data)> 
30            <#assign idsel = entry.getEntryId() /> 
31            <#assign idnews = idnews?number /> 
32        	<#if idnews = idsel > 
33    	        
34    	    <#else> 
35            	<li style="background-color:#fff">  
36                    <span class="datanews">${dateUtil.getDate(data_news_DateObj, "dd.MM.yyyy", locale)}</span> 
37                	     <div class="titolonews"><a href="/media/speciali/-/asset_publisher/F6Xr4gZOhgsa/content/${viewURL?substring(viewURL?index_of("content") + 8)}%26idnews=${entry.getEntryId()}" title="leggi la notizia '${titolo}'">${titolo}</a></div> 
38                	 
39                </li> 
40            </#if> 
41    	</#list> 
42    </ul> 
43    </#if> 
44</#if>