Salta al menu Salta al Footer

Notizie - #Accoglienza Toscana

news - page info 2019

Aggregatore Risorse

In evidenza

Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> localizedDocument.selectSingleNode("/root/dynamic-element[@name='Immagine']/dynamic-content")  [in template "10155#10195#2363722" at line 41, column 92]

----
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: immagine = localizedDocument.selectSi...  [in template "10155#10195#2363722" at line 41, column 81]
----
1<#assign 
2	portlet_display = portletDisplay 
3 
4	portlet_back_url = htmlUtil.escapeHREF(portlet_display.getURLBack()) 
5	portlet_content_css_class = "portlet-content" 
6	portlet_display_name = htmlUtil.escape(portlet_display.getPortletDisplayName()) 
7	portlet_display_root_portlet_id = htmlUtil.escapeAttribute(portlet_display.getRootPortletId()) 
8	portlet_id = htmlUtil.escapeAttribute(portlet_display.getId()) 
9	portlet_title = htmlUtil.escape(portlet_display.getTitle()) 
10/> 
11 
12<#if entries?has_content> 
13 
14	<!-- Cooperative --> 
15	<div class="rt-wrapper"> 
16	    <div class="rt-container"> 
17	        <section class="rt-section rt-section--cooperative rt-section--box rt-section--mobile-scroll rt-section--box-col-3" aria-label="Sezione Cooperative"> 
18	            <div class="rt-section-title-wrapper has-border has-button"> 
19	                <h2 class="rt-section-title"><span>${portlet_title}</span></h2> 
20	                <#--  
21	                <a title="Vedi tutte le notizie" aria-label="Vedi tutte le notizie" href="" 
22	                   class="rt-btn rt-btn-light">Vedi tutte <i aria-hidden="true" class="far fa-chevron-right"></i></a> 
23	                  --> 
24	            </div> 
25				 
26				<#list entries?chunk(3) as row> 
27						<div class="rt-section__wrapper mt-4"> 
28							<#list row as entry> 
29 
30								<#assign  
31									renderer = entry.getAssetRenderer() 
32									className = renderer.getClassName() 
33								/>  
34								<#if className == "com.liferay.journal.model.JournalArticle"> 
35									<#assign  
36										journalArticle = renderer.getArticle() 
37										localizedDocument = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) 
38										DataVisualizzata = localizedDocument.selectSingleNode("/root/dynamic-element[@name='DataVisualizzazione']/dynamic-content").getText() 
39										DataVisualizzata_DateObj = dateUtil.parseDate("yyyy-MM-dd", DataVisualizzata, locale) 
40										DataVisualizzata = dateUtil.getDate(DataVisualizzata_DateObj, "dd MMMM yyyy", locale) 
41										immagine = localizedDocument.selectSingleNode("/root/dynamic-element[@name='Immagine']/dynamic-content").getText() 
42										ImmagineTopAlt = localizedDocument.selectSingleNode("/root/dynamic-element[@name='Immagine']/dynamic-element[@name='TestoAlternativoImmagine']/dynamic-content").getText() 
43										link = renderer.getURLViewInContext(renderRequest, renderResponse, '') 
44										articlePrimKey = journalArticle.resourcePrimKey 
45										assetCategories = entry.getCategories() 
46										imageJson = jsonFactoryUtil.createJSONObject(immagine) 
47										imageUuid = imageJson.getString("uuid") 
48										imageURL = "/documents/" + groupId + "/" + imageUuid 
49									 /> 
50							 
51									<!-- Box cooperativa --> 
52									<div class="rt-box rt-box--has-image rt-box--has-image-bg"> 
53									 
54									    <div class="rt-box__image" aria-label="Immagine notizia - attributo alt img"  style="background-image: url('${imageURL}')"> 
55									    </div> 
56									 
57									    <div class="rt-box__text"> 
58									        <div class="rt-box__title"> 
59									             <a href="${link}" title="Leggi la notizia: ${entry.getTitle(locale)}" aria-label="Leggi la notizia: ${entry.getTitle(locale)}"> 
60									                ${entry.getTitle(locale)} 
61									            </a> 
62									        </div> 
63									 
64									        <div class="rt-box__place"> 
65									           <#-- 
66									            <i aria-hidden="true" class="far fa-map-marker-alt"></i> Vallesanta--> 
67									        </div> 
68									    </div> 
69									 
70									    <a title="Vai al dettaglio della cooperativa" aria-label="Vai al dettaglio della cooperativa" href="${link}" class="rt-btn rt-btn-light rt-btn-round"><span class="rt-btn-accessible-label">Vai al dettaglio della cooperativa</span><i aria-hidden="true" class="far fa-chevron-right"></i></a> 
71									 
72									</div> 
73									<!-- ./END Box cooperativa --> 
74								</#if> 
75							</#list> 
76						</div> 
77				</#list> 
78	        </section> 
79	    </div> 
80	</div> 
81	<!-- ./END Cooperative --> 
82					 
83</#if>