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