An error occurred while processing the template.
The following has evaluated to null or missing: ==> imgJson.url [in template "20096#20121#34292" at line 31, column 51] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: #assign urlImg = imgJson.url [in template "20096#20121#34292" at line 31, column 33] ----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the right panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8
9<#if entries?has_content>
10<div class="elenco">
11 <ul>
12 <#list entries as entry>
13 <#assign assetRenderer = entry.getAssetRenderer() />
14 <#assign journalArticle = assetRenderer.getArticle()>
15 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) />
16
17 <#if assetLinkBehavior != "showFullContent">
18 <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
19 <#assign viewURL = viewURL?split("?")[0] />
20 </#if>
21
22 <#assign document = saxReaderUtil.read(journalArticle.getContent()) >
23 <#assign rootElement = document.getRootElement()>
24 <#assign xPathTitolo = saxReaderUtil.createXPath("dynamic-element[@name='Text39011838']")>
25 <#assign titolo = xPathTitolo.selectSingleNode(rootElement).getStringValue()>
26 <#assign xPathTema = saxReaderUtil.createXPath("dynamic-element[@name='Text79957420']")>
27 <#assign tematica = xPathTema.selectSingleNode(rootElement).getStringValue()>
28 <#assign xPathImg = saxReaderUtil.createXPath("dynamic-element[@name='Image70346917']")>
29 <#assign imgNews = xPathImg.selectSingleNode(rootElement).getStringValue()>
30 <#assign imgJson = jsonFactoryUtil.createJSONObject(imgNews)>
31 <#assign urlImg = imgJson.url />
32 <#assign imgalt = imgJson.alt />
33 <#assign xPathData = saxReaderUtil.createXPath("dynamic-element[@name='Date48375633']") />
34 <#assign data = xPathData.selectSingleNode(rootElement).getStringValue()>
35 <#assign giorno = data?split("-")[2] />
36 <#assign giorno = giorno?trim />
37 <#assign mese = data?split("-")[1] />
38 <#assign mese = mese?trim />
39 <#assign anno = data?split("-")[0] />
40 <#assign anno = anno?trim />
41
42 <li>
43 <div class="tab">
44 <div class="imgnews center"><img src="${urlImg}" alt="${imgalt}" width="100px"></div>
45 <div class="datinews">
46 <span class="datanews">${giorno}.${mese}.${anno}</span>
47 <div class="datanews"><b></b>${tematica}</b></div>
48 <div class="lista" id="mlat10">
49 <a title="leggi la notizia ${titolo}" href="${viewURL}">${titolo}</a>
50 <div class="abs">${entry.getDescription(locale)}</div>
51 </div>
52 </div>
53 </div>
54 </li>
55 </#list>
56 </ul>
57</div>
58</#if>