An error occurred while processing the template.
Expression dataInizio is undefined on line 145, column 38 in 1961190#1961228#1964744.
1<#-- 
2  eCTRL Solutions 
3  PAG-NEWS-ADT 
4  ver: 1.0  
5  data: 19/10/2018  
6--> 
7<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
8<#assign suggestoAPI = serviceLocator.findService("suggesto-gui-portlet","eu.suggesto.suggestogui.service.suggestoGuiLocalService")> 
9<#assign suggestoMkspAPI = serviceLocator.findService("suggesto-mksp-portlet","eu.suggesto.marketspace.service.MkspDockbarLocalService")> 
10<#assign serverName=request.getServerName()> 
11<#assign serverName=""> 
12<#assign dateFormat = "dd/MM/yyyy" />   
13 
14<style> 
15 
16    @media screen and (min-width: 1366px) { 
17        .lfr-pagination{ 
18            -webkit-flex-basis: auto !important; 
19            -ms-flex-preferred-size: auto !important; 
20            flex-basis: auto !important; 
21            width: 70% !important; 
22
23
24 
25    .clearfix.lfr-pagination { 
26        text-align: center; 
27        margin-bottom: 30px; 
28
29 
30    .pager li { 
31        display: inline; 
32        background-color: #65dde0; 
33        border-color: #50d8dc; 
34        color: #004a4d; 
35        font-weight: 600; 
36        padding: 0.6em 1.2em; 
37        text-transform: uppercase; 
38        -ms-touch-action: manipulation; 
39        touch-action: manipulation; 
40        vertical-align: middle; 
41        white-space: nowrap; 
42        border-style: solid; 
43        border-width: 1px; 
44        -webkit-box-sizing: border-box; 
45        box-sizing: border-box; 
46        cursor: pointer; 
47        margin-right: 20px; 
48        padding: 0.4em 0.75em; 
49        position: relative; 
50        text-align: center; 
51        text-decoration: none; 
52        -webkit-user-select: none; 
53        -moz-user-select: none; 
54        -ms-user-select: none; 
55        user-select: none; 
56
57 
58    .pager li a  { 
59        color: inherit;  
60        text-decoration: inherit;  
61
62 
63    .pager li.disabled { 
64        color: gray; 
65
66 
67 
68</style> 
69<section> 
70    <!-- ${serverName} --> 
71    <div class="u-layout-wide u-layoutCenter u-layout-withGutter u-padding-r-top u-padding-bottom-xxl"> 
72        <h1 class="u-text-h2">News</h1> 
73        <div class="Grid Grid--withGutter"> 
74            <!-- sx --> 
75            <div class="Grid-cell u-md-size8of12 u-lg-size8of12"> 
76                <article class="Prose "> 
77 
78                    <!-- single news -->     
79                    <#list entries as entry> 
80                        <#assign entry = entry /> 
81                        <#assign assetRenderer = entry.getAssetRenderer() /> 
82                        <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
83                        <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
84 
85                        <#assign className = assetRenderer.getClassName() /> 
86                        <#assign mainImage = "" /> 
87                        <#assign data = "" /> 
88                        <#assign subArticleName = "" /> 
89                        <#assign longDesc = "" /> 
90 
91                        <!-- DA QUI --> 
92                         
93 
94                        <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
95 
96                            <#assign journalArticle = assetRenderer.getArticle() > 
97                            <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
98                            <#assign rootElement = document.getRootElement()> 
99                            <#assign viewURL = suggestoMkspAPI.getArticleUrl(groupId,serverName,journalArticle.articleId,localeUtil.fromLanguageId(locale.toString()),localeUtil.fromLanguageId("it_IT"),"/comunicazioni-e-news/dettagli") > 
100 
101 
102                            <#assign  stringSelector = "dynamic-element[@name='mainImage']/dynamic-content[@language-id = '" + locale + "']"> 
103                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
104                            <#if xPathSelector.selectSingleNode(rootElement)??> 
105                              <#assign mainImage = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
106                            </#if> 
107                             
108                            <#assign  stringSelector = "dynamic-element[@name='dataInizio']/dynamic-content[@language-id = '" + locale + "']"> 
109                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
110                            <#if xPathSelector.selectSingleNode(rootElement)??> 
111                              <#assign szDataInizio = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
112                              <#assign dtDataInizio = dateUtil.newDate(getterUtil.getLong(szDataInizio))> 
113                              <#assign dataInizio = dateUtil.getDate(dtDataInizio, dateFormat, locale)> 
114                            </#if> 
115                             
116                            <#assign  stringSelector = "dynamic-element[@name='subArticleName']/dynamic-content[@language-id = '" + locale + "']"> 
117                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
118                            <#if xPathSelector.selectSingleNode(rootElement)??> 
119                              <#assign subArticleName = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
120                            </#if> 
121 
122                            <#assign  stringSelector = "dynamic-element[@name='longDesc']/dynamic-content[@language-id = '" + locale + "']"> 
123                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
124                            <#if xPathSelector.selectSingleNode(rootElement)??> 
125                              <#assign longDesc = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
126                            </#if> 
127 
128 
129                            <#assign shortDesc = longDesc?replace("<[^>]*>", "", "r") > 
130                         
131                            <#if shortDesc?length gt 180 > 
132                                <#assign shortDesc = shortDesc[0..180]> 
133                                <#assign lioSD = shortDesc?last_index_of(" ")> 
134                                <#assign shortDesc = shortDesc[0..lioSD] + "..."> 
135                            </#if > 
136 
137 
138                        <div class="Grid u-layout-centerContent"> 
139                            <div class="Grid-cell u-sizeFit"> 
140                                <img src="${mainImage}&width=150&height=150" class="u-sizeFit" alt="..." /> 
141                            </div> 
142                            <div class="Grid-cell u-md-sizeFill u-lg-sizeFill u-padding-r-left"> 
143                                <h2>${entryTitle}</h2> 
144                                <p>${subArticleName}</p> 
145                                <p>${dataInizio}</p> 
146                                <p>${shortDesc}</p> 
147                                <div class="Form-field Grid-cell u-textRight"> 
148                                    <a href="${viewURL}"><button type="button" class="Button Button--default u-text-xs">Dettaglio</button></a> 
149                                </div> 
150                            </div> 
151                        </div> 
152                        <hr/> 
153                        </#if> 
154                    </#list> 
155 
156                    <!-- single news -->     
157                     
158                </article> 
159            </div> 
160            <!-- rx --> 
161            <div class="Grid-cell u-sizeFull u-md-size4of12 u-lg-size4of12"> 
162                 
163                <a href="#" title="torna all'inizio del contenuto" class="u-hiddenVisually">torna all'inizio del contenuto</a> 
164            </div> 
165        </div> 
166    </div> 
167</section> 
torna all'inizio del contenuto