Breadcrumb

NEWS

News and annauncements from the Manus team.

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> url  [in template "20098#20124#45194" at line 64, column 58]

----
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: ${url}  [in template "20098#20124#45194" at line 64, column 56]
----
1<#assign currentSite = themeDisplay.getSiteGroup()> 
2<#assign path = currentSite.getPathFriendlyURL(false, themeDisplay) > 
3<#assign friendly = currentSite.getFriendlyURL() > 
4 
5<div class="container mb-4"> 
6    <div class="row"> 
7        <#if entries?has_content> 
8        	<#list entries as curEntry> 
9        		 
10        		<#assign assetRenderer = curEntry.getAssetRenderer()/> 
11		        <#assign ja = assetRenderer.getArticle() /> 
12		        <#assign langId = themeDisplay.getLanguageId() /> 
13		        <#assign contentByLocale = ja.getContentByLocale(themeDisplay.getLanguageId()) /> 
14		        <#assign document = saxReaderUtil.read(contentByLocale) > 
15		        <#assign rootElement = document.getRootElement()> 
16		         
17		        <#assign xPathTitolo = saxReaderUtil.createXPath("dynamic-element[@name='titolo']")> 
18		        <#assign titolo = xPathTitolo.selectSingleNode(rootElement).getStringValue()> 
19		         
20		        <#assign xPathDataNews = saxReaderUtil.createXPath("dynamic-element[@name='DateNews']")> 
21		        <#assign dateNews = "" > 
22		        <#if xPathDataNews?? && xPathDataNews?has_content> 
23		            <#if xPathDataNews.selectSingleNode(rootElement)?? && xPathDataNews.selectSingleNode(rootElement)?has_content && xPathDataNews.selectSingleNode(rootElement).getStringValue()?has_content > 
24		                <#assign dateNews = xPathDataNews.selectSingleNode(rootElement).getStringValue()?trim> 
25		            </#if> 
26		        </#if> 
27		         
28		        <#assign xPathSottotitolo = saxReaderUtil.createXPath("dynamic-element[@name='sottotitolo']")> 
29		        <#assign sottotitolo = xPathSottotitolo.selectSingleNode(rootElement).getStringValue()> 
30		         
31		        <#assign xPathImmagine = saxReaderUtil.createXPath("dynamic-element[@name='immagine']")> 
32            	<#assign immagine = "" > 
33            					 
34				<#if xPathImmagine?? && xPathImmagine?has_content> 
35		        	<#if xPathImmagine.selectSingleNode(rootElement)?? && xPathImmagine.selectSingleNode(rootElement)?has_content> 
36						<#assign immagine = xPathImmagine.selectSingleNode(rootElement).getStringValue()> 
37					</#if> 
38				</#if> 
39            					 
40				<#assign xPathTestoAlternativoImmagine = saxReaderUtil.createXPath("dynamic-element[@name='testo_alternativo_immagine']")> 
41				<#assign testoAlternativoImmagine = "" > 
42				<#if xPathTestoAlternativoImmagine?? && xPathTestoAlternativoImmagine?has_content> 
43		        	<#if xPathTestoAlternativoImmagine.selectSingleNode(rootElement)?? && xPathTestoAlternativoImmagine.selectSingleNode(rootElement)?has_content> 
44						<#assign testoAlternativoImmagine = xPathTestoAlternativoImmagine.selectSingleNode(rootElement).getStringValue()> 
45					</#if> 
46				</#if> 
47					 
48				<#if immagine?has_content && immagine?trim?length gt 0 > 
49					<#assign immagineJson = immagine?trim?replace('\\','')?eval > 
50					<#if immagineJson?has_content > 
51					    <#if immagineJson.classPK?has_content > 
52					        <#assign url = "/documents/${immagineJson.groupId}/${immagineJson.classPK}/${immagineJson.title}/${immagineJson.uuid}"> 
53					    <#else> 
54					        <#assign url = immagineJson.url > 
55					    </#if> 
56					</#if> 
57				<#else> 
58					<#assign url = "" > 
59				</#if> 
60		         
61        		<div class="col-12 col-sm-6 col-md-4"> 
62                    <a class="card card-4" href="${path}${friendly}/-/${ja.getUrlTitle()}"> 
63                        <div class="card-header"> 
64                          <div class="image"><img src="${url}" alt="${testoAlternativoImmagine}"></div> 
65                        </div> 
66                        <div class="card-body"> 
67                            <#if dateNews?has_content > 
68                                <div class="card-info">${dateNews?trim?date("yyyy-MM-dd")?string["dd/MM/yyyy"]}</div> 
69                            <#else> 
70                                <div class="card-info">${ja.getCreateDate()?string["dd/MM/yyyy, HH:mm"]}</div> 
71                            </#if> 
72                            <div class="card-title">${titolo}</div> 
73                        </div> 
74                    </a> 
75                </div> 
76                <#assign url = "" > 
77        	</#list> 
78        </#if> 
79    </div> 
80</div>