An error occurred while processing the template.
Error on line 42, 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<#assign nomesez = "" /> 
11<#assign link1 = "" /> 
12<#assign link2 = "" /> 
13<#assign sezpath = path?index_of("joborienta") /> 
14<#if (sezpath != -1)> 
15    <#assign sottosez = "joborienta" /> 
16    <#assign link1 = "selected" /> 
17    <#assign link2 = "" /> 
18<#else> 
19    <#assign sottosez = "reddito-di-cittadinanza" /> 
20    <#assign link1 = "" /> 
21    <#assign link2 = "selected" /> 
22</#if> 
23<#if ((path = "/media/speciali") || (path = "/media/speciali/joborienta") || (path = "/media/speciali/reddito-di-cittadinanza")) > 
24    <ul class="boxnavigazione" id="sfondonav"> 
25       <li class="liv1">  
26    		<a style="font-weight:400" title="vai alla sezione Video YouTube" href="/media/video-youtube-anpal-servizi">Video YouTube ANPAL Servizi</a> 
27    	</li> 
28    	<li class="liv1">  
29    		<a style="font-weight:400" title="vai alla sezione Rassegna video e audio" href="/media/rassegna-video-e-audio">Rassegna video e audio</a> 
30    	</li> 
31    	<li class="liv1">  
32    		<a style="font-weight:400" title="vai alla sezione Campagne di comunicazione" href="/media/campagne-di-comunicazione">Campagne di comunicazio</a> 
33    	</li> 
34    	<li class="liv1">  
35    		<a style="font-weight:400" title="vai alla sezione Il posto giusto " href="/media/il-posto-giusto">Il posto giusto </a> 
36    	</li> 
37        <li class="liv1">  
38    		<a style="font-weight:700" title="vai alla sezione Speciali " href="/media/speciali">Speciali </a> 
39    	<span id="chiudi"><i class="fa fa-minus floatdx"></i></span> <div class="${link1} liv2" id="mbottom10"> <a title="vai alla sezione Speciali Job Orienta" href="/media/speciali/joborienta"> Job Orienta </a> </div> <div class="${link2} liv2" id="mbottom10"> <a title="vai alla sezione Speciali Reddito di Cittadinanza" href="/media/speciali/reddito-di-cittadinanza"> Reddito di Cittadinanza </a> </div> </li> 
40    </ul> 
41<#else> 
42    <#assign idnews = themeDisplay.getURLCurrent()?split("idnews=")[1] /> 
43    <div class="titolopage">Notizie correlate</div> 
44    <#if entries?has_content> 
45    <ul class="elenco"> 
46    	<#list entries as entry> 
47            <#assign assetRenderer = entry.getAssetRenderer() /> 
48             
49            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
50             
51            <#if assetLinkBehavior != "showFullContent"> 
52            	<#assign viewviewURLURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
53            </#if> 
54            <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
55            <#assign titolo = docXml.valueOf("//dynamic-element[@name='titolo_news']") /> 
56            <#assign data = docXml.valueOf("//dynamic-element[@name='data_news']") /> 
57            <#assign data_news_Data = getterUtil.getLong(data)> 
58            <#assign data_news_DateObj = dateUtil.newDate(data_news_Data)> 
59            <#assign idsel = entry.getEntryId() /> 
60            <#assign idnews = idnews?number /> 
61        	<#if idnews = idsel > 
62    	        
63    	    <#else> 
64            	<li style="background-color:#fff">  
65                    <span class="datanews">${dateUtil.getDate(data_news_DateObj, "dd.MM.yyyy", locale)}</span> 
66                	     <div class="titolonews"><a href="/media/speciali/${sottosez}/-/asset_publisher/F6Xr4gZOhgsa/content/${viewURL?substring(viewURL?index_of("content") + 8)}%26idnews=${entry.getEntryId()}" title="leggi la notizia '${titolo}'">${titolo}</a></div> 
67                	 
68                </li> 
69            </#if> 
70    	</#list> 
71    </ul> 
72    </#if> 
73</#if>