Si è verificato un errore nell'elaborarazione del modello.
Error on line 94, column 5 in 228290#228328#260505
assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) is undefined.
It cannot be assigned to viewURL
1<script> 
2 
3 
4 
5</script> 
6<style type="text/css"> 
7     
8    .eventi { 
9        padding-top: 30px; 
10        padding-bottom: 30px; 
11        margin-top: 30px; 
12
13     
14    .lfr-pagination-buttons a { 
15        color: #7a2244; 
16
17     
18    .lfr-pagination-buttons a:hover { 
19        color: #7a2244; 
20
21     
22    .lfr-pagination-buttons .disable a { 
23        color: #999 !important; 
24
25 
26    @media (max-width: 767px) { 
27 
28 
29
30     
31    .singleBox:hover { 
32        background-color: #7a2244; 
33
34     
35    .singleBox:hover > h2 { 
36        color: #fff; 
37
38     
39    .singleBox:hover .eventiData { 
40        color: #fff; 
41
42     
43    .singleBox:hover .eventiText { 
44        color: #fff; 
45
46 
47    .eventi .title { 
48        text-transform: uppercase; 
49        font-size: 1.6em; 
50        color: #7a2244; 
51        padding-bottom: 30px; 
52
53 
54    .eventi h2 { 
55        color: #7a2244; 
56        font-size: 1.4em; 
57        line-height: 1.1; 
58        text-align: left; 
59
60 
61    .eventiData { 
62        font-size: 1.3em; 
63        color: #7a2244; 
64        text-align: left; 
65        padding-bottom: 20px; 
66
67 
68    .eventiText { 
69        font-size: 1.1em; 
70        color: #1d1d1b; 
71        text-align: left; 
72        padding-bottom: 20px; 
73
74 
75    .eventi .singleBox { 
76        padding: 15px; 
77        padding-top: 5px; 
78
79</style> 
80 
81<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
82 
83 
84 
85<div class="container-fluid eventi"> 
86<div class="container_960"> 
87    <div class="title">Archivio novit&Agrave;</div> 
88 
89    
90<#list entries as entry> 
91    <#assign entry = entry /> 
92    <#assign assetRenderer = entry.getAssetRenderer() /> 
93    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
94    <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
95 
96    <#assign className = assetRenderer.getClassName() /> 
97    <#assign imgnews = "" /> 
98    <#assign titolonews = "" /> 
99    <#assign Data = "" /> 
100    <#assign testonews = "" /> 
101 
102    <#if className == "com.liferay.portlet.journal.model.JournalArticle"> 
103 
104        <#assign journalArticle = assetRenderer.getArticle() > 
105        <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
106        <#assign rootElement = document.getRootElement()> 
107 
108         
109        <#assign  stringSelector = "dynamic-element[@name='Immagine']/dynamic-content[@language-id = '" + locale + "']"> 
110        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
111        <#if xPathSelector.selectSingleNode(rootElement)??> 
112           <#assign imgnews = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
113        </#if> 
114         
115        <#assign  stringSelector = "dynamic-element[@name='Data']/dynamic-content[@language-id = '" + locale + "']"> 
116        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
117        <#if xPathSelector.selectSingleNode(rootElement)??> 
118           <#assign Data = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
119        </#if> 
120         
121        <#assign  stringSelector = "dynamic-element[@name='Titolo']/dynamic-content[@language-id = '" + locale + "']"> 
122        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
123        <#if xPathSelector.selectSingleNode(rootElement)??> 
124           <#assign titolonews = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
125        </#if> 
126 
127        <#assign  stringSelector = "dynamic-element[@name='Testo']/dynamic-content[@language-id = '" + locale + "']"> 
128        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)> 
129        <#if xPathSelector.selectSingleNode(rootElement)??> 
130           <#assign testonews = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
131        </#if> 
132         
133        <#if (entry_index %3) == 0> 
134            <div class="row-fluid"> 
135        </#if> 
136         
137        <div class="span4 "> 
138            <img alt="Immagine 1" src="${imgnews}" style=""/> 
139         
140        <a href="${viewURL}" target="_top" style="color: #7a2244;"><div class="singleBox"> 
141            <h2>${titolonews}</h2> 
142 
143            <div class="eventiData">${Data}</div> 
144            <#if testonews?length &lt; 100> 
145                <div class="eventiText">${testonews}</div> 
146            <#else> 
147                <div class="eventiText">${testonews?substring(0, 100)}  <b>Continua a leggere...</b></div> 
148            </#if> 
149        </div></a> 
150        </div> 
151         
152        <#if ( (entry_index %3) == 2 ) || ( !entry_has_next )> 
153            </div> 
154        </#if> 
155    </#if> 
156 
157</#list> 
158 
159    </div> 
160    </div>