ACTIVITIES

School

The environment and health

An error occurred while processing the template.
The following has evaluated to null or missing:
==> curEntry.getAssetRenderer().getDisplayDate  [in template "20099#20135#5446544" at line 38, column 90]

----
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: ${curEntry.getAssetRenderer().getDisp...  [in template "20099#20135#5446544" at line 38, column 88]
----
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<style> 
10   p{ 
11       font-family:'Titillium Web' 
12   }  
13 
14</style> 
15 
16<div class="row" >  
17    <div class="col-md-12" > 
18        <#if entries?has_content>  
19            <#list entries as curEntry>  
20             
21            <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
22		    <#if assetLinkBehavior != "showFullContent"> 
23			    <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
24		    </#if> 
25		    <!--TITOLO --> 
26            <a class="a-adt-ufficio-stampa" href="${viewURL}"> 
27               <h5 class="iss-adt-ufficio-stampa-title" >  
28                 <#assign titolo = curEntry.getTitle(locale) /> 
29                 <#if titolo?length < 200 > 
30                     ${titolo}  
31                  <#else> 
32                     ${titolo?substring(0, 200)}  
33                  </#if> 
34              </h5> 
35              </a> 
36               
37              <!--DATA --> 
38               <span class="iss-adt-ufficio-stampa-data" ><i class="far fa-clock"></i> ${curEntry.getAssetRenderer().getDisplayDate()?date?string["dd/MM/yyyy"]}</span> 
39               
40               
41               <#assign fields =curEntry.getAssetRenderer().getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() 
42                descrizione = fields[0].getValue().getString(locale) 
43                summary = curEntry.getSummary(locale) 
44                /> 
45                 
46              <#if summary?? &&  summary?has_content > 
47                    <#if (summary?length > 200) > 
48                        <#assign descrizione = summary /> 
49                    <#else> 
50                        <#if descrizione?? && descrizione?has_content> 
51                            <#assign descrizione = descrizione /> 
52                        <#else> 
53                            <#assign descrizione = summary /> 
54                        </#if>   
55                    </#if> 
56                             
57              <#else> 
58                    <#assign descrizione = descrizione /> 
59               </#if>   
60             
61                <#if descrizione?? > 
62                 <#assign  descrizione = descrizione?replace('<[^>]+>','','r') /> 
63                </#if> 
64                
65                 
66                 
67                 
68            <!--DESCRIZIONE -->     
69            <div class="visible-xl-inline visible-lg-inline hidden-md hidden-sm hidden-xs">     
70              <p class="iss-adt-ufficio-stampa-par"> 
71                
72               
73                <#if descrizione?length < 600 > 
74                    ${descrizione} 
75                 <#else> 
76                     ${descrizione?substring(0, 600)}...  
77                </#if> 
78                     
79              </p> 
80               
81              </div> 
82              <div class="hidden-xl hidden-lg visible-md-inline visible-sm-inline visible-xs-inline" > 
83              <p class="iss-adt-ufficio-stampa-par"> 
84                <#if descrizione?length < 300 > 
85                    ${descrizione} 
86                 <#else> 
87                     ${descrizione?substring(0, 300)}...  
88                </#if> 
89                     
90              </p> 
91              </div> 
92               
93              <a href="${viewURL}" displayType="link" class="btn btn-sm iss-continue-btn iss-right-btn" >read more</a> 
94              <br><br> 
95               
96              <hr> 
97               
98            </#list>  
99        </#if> 
100         
101    </div> 
102</div> 
103 
104<script> 
105    $(document).ready(function(){ 
106        ColorFirstWord('iss-adt-ufficio-stampa-title'); 
107        
108         
109    }) 
110     
111 
112</script>