8° ERA dissemination workshop: TDG Risk Management Framework
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> request['theme-display']['portlet-display']['instance-id'] [in template "20115#20151#73055" at line 33, column 75] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to be 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: portletIdValue = request["theme-displ... [in template "20115#20151#73055" at line 33, column 57] - Reached through: #assign-container [in template "20115#20151#73055" at line 32, column 49] ----
1<#macro condividiList titolo url idint>
2 <#assign titoloCon = htmlUtil.escapeURL(titolo) />
3 <div class="float-right dropdown dropleft">
4 <a class="btn btn-dropdown dropdown-toggle" href="#" role="button" id="dropdownMenuNews-${idint}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="condividi ${titolo}" >
5 <svg class="icon icon-xs icon-primary"><use xlink:href="${themeDisplay.getPathThemeImages()}/sprite.svg#it-share"></use></svg>
6 </a>
7 <div class="dropdown-menu" aria-labelledby="dropdownMenuNews-${idint}">
8 <div>
9 <ul class="link-list">
10 <li class="list-item">
11 <a href="http://www.facebook.com/sharer.php?u=${url}" target="_self"> <svg class="icon icon-sm"><use xlink:href="${themeDisplay.getPathThemeImages()}/sprite.svg#it-facebook-square"></use></svg> Facebook </a> </li>
12 <li class="list-item">
13 <a href="https://twitter.com/intent/tweet?text=${titoloCon}&tw_p=tweetbutton&url=${url}" target="_self"> <svg class="icon icon-sm"><use xlink:href="${themeDisplay.getPathThemeImages()}/sprite.svg#it-twitter"></use></svg> Twitter </a> </li>
14 </ul>
15 </div>
16 </div>
17</div>
18</#macro>
19<div class="dettaglio news">
20 <#assign DataNews_Data = getterUtil.getString(DataNews.getData())>
21
22 <#if validator.isNotNull(DataNews_Data)>
23 <#assign DataNews_DateObj = dateUtil.parseDate("yyyy-MM-dd", DataNews_Data, locale)>
24 <p class="h5 dataleft" style="color: #666">${dateUtil.getDate(DataNews_DateObj, "EEEE, d MMMM yyyy", locale)?capitalize}</p>
25 </#if>
26
27 <#if Sottotitolo?? && Sottotitolo.getData()?? && Sottotitolo.getData() != "">
28 <p class="font-weight-bold font-italic pt-2"> ${Sottotitolo.getData()} </p>
29 </#if>
30
31 <#if Condividi?? && Condividi.getData()?? && getterUtil.getBoolean(Condividi.getData())>
32 <#assign
33 portletIdValue = request['theme-display']['portlet-display']['instance-id']
34 urlArticle = 'https://'+request['theme-display']['portal-url']+'/news/-/asset_publisher/'+portletIdValue+'/content/'+ .vars['reserved-article-url-title'].data
35 />
36 <@condividiList
37 titolo="${.vars['reserved-article-title'].data}"
38 url=urlArticle idint="idCondividiNews" />
39
40 </#if>
41
42 <div class="${AreaNews.getData()} <#if ColonnaDestra?? && ColonnaDestra.getData()?? && ColonnaDestra.getData() != ''> col-lg-9</#if>">
43 <#if Immagine.getData()?? && Immagine.getData() != "">
44 <#assign altText = Immagine.getAttribute("alt")>
45 <#if Immagine.getAttribute("alt")==''>
46 <#assign altText = 'Immagine copertina'>
47 </#if>
48 <p><img data-fileentryid="${Immagine.getAttribute("fileEntryId")}" alt="${altText}" src="${Immagine.getData()}" class="img-responsive img-cover" data-object-fit="cover"/></p>
49 </#if>
50
51 ${Contenuto.getData()}
52
53 <div class="card__footer">
54 <#if getterUtil.getBoolean(ScaricaDocumento.getData())>
55 <a class="btn btn-link pull-right" target="_blank" href="${DocumentiEMedia.getData()}">
56 ${TestoLinkNews.getData()}<span class="fa fa-angle-right"></span>
57 </a>
58 </#if>
59 </div>
60
61
62 <#if Galleria?? && Galleria.getSiblings()?size gt 0 && (Galleria.getSiblings()?first).getData()?has_content>
63 <h2>Galleria fotografica</h2>
64 <ul class="thumb-nav thumb-nav-auto thumb-nav-auto-2">
65 <#list Galleria.getSiblings() as cur_Galleria>
66
67 <#if cur_Galleria.getData()?? && cur_Galleria.getData() != "">
68 <li>
69 <img alt="resize image" src="${themeDisplay.getPathThemeImages()}/resizer-3x2.svg" class="thumb-nav-resizer" aria-hidden="true"/>
70 <a class="opener" data-altimg="${cur_Galleria.getAttribute("alt")}" data-fileentryid="${cur_Galleria.getAttribute("fileEntryId")}" data-url="${cur_Galleria.getData()}" ><img data-fileentryid="${cur_Galleria.getAttribute("fileEntryId")}" alt="${cur_Galleria.getAttribute("alt")}" src="${cur_Galleria.getData()}" ></a>
71 </li>
72 </#if>
73 </#list>
74 </ul>
75
76 <div id="modal-img-detail" >
77 <div class="text-right">
78 <button id="close-modal" type="button" class="close mb-3" aria-label="Close">
79 <svg class="icon icon-sm">
80 <use href="${themeDisplay.getPathThemeImages()}/sprite.svg#it-close"></use>
81 </svg>
82 </button>
83 </div>
84 <div >
85 <img id="img-detail-url" style="width: 60vmax;" alt="" src="">
86 </div>
87 </div>
88
89
90 <script type="text/javascript">
91
92 $( function() {
93 $( "#modal-img-detail" ).dialog({
94 autoOpen: false,
95 modal: true,
96 height: "auto",
97 width: "auto",
98 draggable: false,
99 resizable: false,
100 position: { my: "top", at: "left top", of: window }
101 });
102
103
104 $( ".opener" ).on( "click",function(){
105 var url=$(this).attr('data-url');
106 $('#img-detail-url').attr('src',url);
107 $( "#modal-img-detail" ).dialog( "open" );
108 });
109
110 $( "#close-modal" ).on( "click",function(){
111 $( "#modal-img-detail" ).dialog( "close" );
112 });
113 });
114
115 </script>
116
117 </#if>
118
119 </div>
120
121 <#if ColonnaDestra?? && ColonnaDestra.getData()?? && ColonnaDestra.getData() != ''>
122 <div class="col-lg-3 news-detail-right">
123 ${ColonnaDestra.getData()}
124 </div>
125 </#if>
126</div>