Во время обработки запрошенного шаблона произошла ошибка...
Expression articleName is undefined on line 124, column 39 in 635382#635420#1333087.
1<!-- 
2  ADT-TOURISM-TPL 
3  v1.8 19/06/2017 
4 
5  https://docs.liferay.com/portal/6.2/javadocs/com/liferay/portal/service/LayoutLocalService.html 
6  https://docs.liferay.com/portal/6.2/javadocs/com/liferay/portal/model/Layout.html 
7  https://docs.liferay.com/portal/6.2/javadocs/com/liferay/portal/theme/ThemeDisplay.html 
8 
9  Riferimenti: https://italia.github.io/ita-web-toolkit/ 
10--> 
11 
12 
13<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
14<#assign suggestoAPI = serviceLocator.findService("suggesto-gui-portlet","eu.suggesto.suggestogui.service.suggestoGuiLocalService")> 
15<#assign suggestoMkspAPI = serviceLocator.findService("suggesto-mksp-portlet","eu.suggesto.marketspace.service.MkspDockbarLocalService")> 
16<#assign serverName=request.getServerName()> 
17<#assign serverName=""> 
18<#assign dateFormat = "dd/MM/yyyy" />      
19 
20<style> 
21   .lfr-pagination ul { 
22        text-align:center; 
23        width: 66.66667% !important; 
24        padding: 15px; 
25        font-size: 1.3em; 
26
27 
28   .lfr-pagination li { 
29        display: inline; 
30        padding: 15px; 
31
32 
33   .lfr-pagination a { 
34        text-decoration:none; 
35
36 
37   .lfr-pagination-delta-selector { 
38        display: none; 
39
40 
41    small.search-results { 
42        display: none; 
43
44 
45    span.lfr-icon-menu-text { 
46        display: none; 
47
48 
49 
50</style> 
51 
52<section> 
53    <!-- ${serverName} --> 
54    <div class="u-layout-wide u-layoutCenter u-layout-withGutter u-padding-r-top u-padding-bottom-xxl"> 
55        <h1 class="u-text-h2"></h1> 
56        <div class="Grid Grid--withGutter"> 
57            <!-- sx --> 
58            <div class="Grid-cell u-md-size8of12 u-lg-size8of12"> 
59                <article class="Prose "> 
60 
61                    <!-- single journal article -->     
62                    <#list entries as entry> 
63                        <#assign entry = entry /> 
64                        <#assign assetRenderer = entry.getAssetRenderer() /> 
65                        <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
66                        <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
67 
68                        <#assign className = assetRenderer.getClassName() /> 
69                        <#assign mainImage = "" /> 
70                        <#assign data = "" /> 
71                        <#assign subArticleName = "" /> 
72                        <#assign longDesc = "" /> 
73 
74                        <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
75 
76                            <#assign journalArticle = assetRenderer.getArticle() > 
77                            <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
78                            <#assign rootElement = document.getRootElement()> 
79                            <#-- assign viewURL = suggestoMkspAPI.getArticleUrl(groupId,serverName,journalArticle.articleId,localeUtil.fromLanguageId(locale.toString()),localeUtil.fromLanguageId("it_IT"),"/news/dett")  --> 
80                             
81                            <#assign  stringSelector = "dynamic-element[@name='mainImage']/dynamic-content[@language-id = '" + locale + "']"> 
82                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
83                            <#if xPathSelector.selectSingleNode(rootElement)??> 
84                              <#assign mainImage = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
85                            </#if> 
86                             
87                            <#assign  stringSelector = "dynamic-element[@name='dataInizio']/dynamic-content[@language-id = '" + locale + "']"> 
88                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
89                            <#if xPathSelector.selectSingleNode(rootElement)??> 
90                              <#assign szDataInizio = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
91                              <#assign dtDataInizio = dateUtil.newDate(getterUtil.getLong(szDataInizio))> 
92                              <#assign dataInizio = dateUtil.getDate(dtDataInizio, dateFormat, locale)> 
93                            </#if> 
94                             
95 
96                            <#assign  stringSelector = "dynamic-element[@name='articleName']/dynamic-content[@language-id = '" + locale + "']"> 
97                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
98                            <#if xPathSelector.selectSingleNode(rootElement)??> 
99                              <#assign articleName = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
100                            </#if> 
101 
102                            <#assign  stringSelector = "dynamic-element[@name='subArticleName']/dynamic-content[@language-id = '" + locale + "']"> 
103                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
104                            <#if xPathSelector.selectSingleNode(rootElement)??> 
105                              <#assign subArticleName = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
106                            </#if> 
107 
108                            <#assign  stringSelector = "dynamic-element[@name='longDesc']/dynamic-content[@language-id = '" + locale + "']"> 
109                            <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
110                            <#if xPathSelector.selectSingleNode(rootElement)??> 
111                              <#-- assign longDesc = xPathSelector.selectSingleNode(rootElement).getStringValue() --> 
112                            </#if> 
113 
114                            <#-- if longDesc?length &gt; 200> 
115                                <#assign longDesc=longDesc?substring(0, 200) + "..." > 
116                            </#if --> 
117 
118 
119                        <div class="Grid u-layout-centerContent"> 
120                            <div class="Grid-cell u-sizeFit"> 
121                                <img src="${mainImage}&width=150&height=150" class="u-sizeFit" alt="..." /> 
122                            </div> 
123                            <div class="Grid-cell u-md-sizeFill u-lg-sizeFill u-padding-r-left"> 
124                                <h2>${articleName}</h2> 
125                                <p>${subArticleName}</p> 
126                                <#if szDataInizio?has_content> 
127                                  <p>${dataInizio}</p> 
128                                </#if> 
129                                <p>${longDesc}</p> 
130                                <div class="Form-field Grid-cell u-textRight"> 
131                                    <a href="${viewURL}"><button type="button" class="Button Button--default u-text-xs">Dettaglio</button></a> 
132                                </div> 
133                            </div> 
134                        </div> 
135                        <hr/> 
136                        </#if> 
137                    </#list> 
138 
139                    <!-- single journal article -->     
140                     
141                </article> 
142            </div> 
143            <!-- rx --> 
144 
145            <div class="Grid-cell u-sizeFull u-md-size4of12 u-lg-size4of12"> 
146                
147                <!-- right links -->  
148                <div class="u-sizeFull u-md-size11of12 u-lg-size11of12" id="subnav"> 
149                    <ul class="Linklist Linklist--padded u-layout-prose u-text-r-xs u-textWeight-700 u-background-grey-20"> 
150                        <li class="subpages"><a href="/web/guest/cosa-fare">Cosa fare</a></li> 
151                        <li class="subpages"><a href="/web/guest/il-centro-storico">Il Centro Storico</a></li> 
152                        <li class="subpages"><a href="/web/guest/i-parchi">I Parchi</a></li> 
153                        <li class="subpages"><a href="/web/guest/le-spiagge">Le Spiagge</a></li> 
154                        <li class="extlink"><a href="http://www.sirmionebs.it/italian/index.php">Il sito turistico di Sirmione</a></li> 
155                    </ul> 
156                </div> 
157                <a href="#" title="torna all'inizio del contenuto" class="u-hiddenVisually"><b>torna all'inizio del contenuto</b></a>  
158            </div> 
159        </div> 
160    </div> 
161</section> 
torna all'inizio del contenuto