Si รจ verificato un errore nell'elaborarazione del modello.
Error: on line 17, column 31 in 425118#425156#1735639
Expecting a number here, found: {{groupid}}
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
2<#assign szJsonParams = result.getNamespacedParameters().getString("jsonParams") >     
3<#assign jsonParams = jsonFactoryUtil.createJSONObject(szJsonParams) > 
4<#assign articleId = jsonParams.getString("articleId") > 
5<#assign szarticleGroupId = jsonParams.getString("groupId")> 
6<#if szarticleGroupId?has_content> 
7	<#assign claimText = "" /> 
8	<#assign previewImage = "" /> 
9	<#assign title = "" /> 
10	<#assign shortDesc = "" /> 
11	<#assign sectionSubTitle = "" /> 
12	<#assign sectionImage = "" /> 
13	<#assign embeddedCode = "" /> 
14	<#assign sectionBody = "" /> 
15	<#assign sectionMode = "" /> 
16	 
17    <#assign articleGroupId = szarticleGroupId?number> 
18    <#assign journalArticle = journalArticleLocalService.getLatestArticle(articleGroupId, articleId)>     
19    <#assign title = journalArticle.getTitle(locale) />     
20    <#assign document = saxReaderUtil.read(journalArticle.getContent())> 
21    <#assign rootElement = document.getRootElement()> 
22    <#assign stringSelector = "dynamic-element[@name='claimText']/dynamic-content[@language-id = '" + locale + "']"> 
23    <#assign xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
24    <#if xPathSelector.selectSingleNode(rootElement)??> 
25        <#assign claimText = xPathSelector.selectSingleNode(rootElement).getStringValue()>  
26    </#if> 
27    <#assign stringSelector = "dynamic-element[@name='previewImage']/dynamic-content[@language-id = '" + locale + "']"> 
28    <#assign xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
29    <#if xPathSelector.selectSingleNode(rootElement)??> 
30        <#assign previewImage = xPathSelector.selectSingleNode(rootElement).getStringValue()>  
31    </#if> 
32    <#assign stringSelector = "dynamic-element[@name='shortDesc']/dynamic-content[@language-id = '" + locale + "']"> 
33    <#assign xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
34    <#if  xPathSelector.selectSingleNode(rootElement)??> 
35        <#assign shortDesc = xPathSelector.selectSingleNode(rootElement).getStringValue()>  
36    </#if> 
37 
38    <#assign  stringSelector = "dynamic-element[@name='sectionTitle']/dynamic-content[@language-id = '" + locale + "']"> 
39    <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
40    <#if  xPathSelector.selectSingleNode(rootElement)??> 
41        <#assign sectionTitle = xPathSelector.selectSingleNode(rootElement).getStringValue()>  
42    </#if> 
43    <#assign  stringSelector = "dynamic-element[@name='sectionTitle']"> 
44    <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
45    <#if  xPathSelector.selectSingleNode(rootElement)??> 
46        <#assign sectionTitleElem = xPathSelector.selectSingleNode(rootElement)>  
47        <#assign  stringSelector = "dynamic-element[@name='sectionSubTitle']/dynamic-content[@language-id = '" + locale + "']"> 
48        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
49        <#if  xPathSelector.selectSingleNode(sectionTitleElem)??> 
50            <#assign sectionSubTitle = xPathSelector.selectSingleNode(sectionTitleElem).getStringValue()>  
51        </#if> 
52         
53        <#assign  stringSelector = "dynamic-element[@name='sectionImage']/dynamic-content[@language-id = '" + locale + "']"> 
54        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
55        <#if  xPathSelector.selectSingleNode(sectionTitleElem)??> 
56            <#assign sectionImage = xPathSelector.selectSingleNode(sectionTitleElem).getStringValue()>  
57        </#if> 
58         
59        <#assign  stringSelector = "dynamic-element[@name='embeddedCode']/dynamic-content[@language-id = '" + locale + "']"> 
60        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
61        <#if  xPathSelector.selectSingleNode(sectionTitleElem)??> 
62            <#assign embeddedCode = xPathSelector.selectSingleNode(sectionTitleElem).getStringValue()>  
63        </#if> 
64 
65        <#assign  stringSelector = "dynamic-element[@name='sectionBody']/dynamic-content[@language-id = '" + locale + "']"> 
66        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
67        <#if  xPathSelector.selectSingleNode(sectionTitleElem)??> 
68            <#assign sectionBody = xPathSelector.selectSingleNode(sectionTitleElem).getStringValue()>  
69        </#if> 
70 
71        <#assign  stringSelector = "dynamic-element[@name='sectionMode']/dynamic-content[@language-id = '" + locale + "']"> 
72        <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
73        <#if  xPathSelector.selectSingleNode(sectionTitleElem)??> 
74            <#assign sectionMode = xPathSelector.selectSingleNode(sectionTitleElem).getStringValue()>  
75        </#if> 
76         
77    </#if> 
78 
79    <#assign  stringSelector = "dynamic-element[@name='geoRef']/dynamic-content[@language-id = '" + locale + "']"> 
80    <#assign  xPathSelector = saxReaderUtil.createXPath(stringSelector)>  
81    <#if  xPathSelector.selectSingleNode(rootElement)??> 
82        <#assign geoRef = xPathSelector.selectSingleNode(rootElement)>  
83    </#if> 
84     
85    <style> 
86        body { 
87          background-color: black; 
88          color: white; 
89          font-family: 'Lato', sans-serif; 
90
91 
92        #container {background-color: black;} 
93 
94        div#titleDiv { 
95            font-size: 4em; 
96            position: absolute; 
97            top: 5%; 
98            left: 5%; 
99        }   
100 
101        div#claimTextDiv { 
102            font-size: 2em; 
103            position: absolute; 
104            top: 15%; 
105            left: 5%; 
106        }   
107 
108        img#previewImage { 
109            position: absolute; 
110            top: 25%; 
111            left: 5%; 
112            height: 70%; 
113            width: 50%; 
114
115 
116        div#shortDescDiv { 
117            position: absolute; 
118            top: 25%; 
119            left: 60%; 
120            right: 5%; 
121            font-size: 1.5em; 
122            text-align: justify; 
123            text-justify: inter-word; 
124            line-height: 1.8em; 
125
126 
127    </style> 
128     
129<!-- div class="mainContent">     
130    <h1> da includere come iframe</h1>       
131        ${title},${claimText},${previewImage},${shortDesc},${sectionTitle},${sectionSubTitle},${sectionImage},${embeddedCode},${sectionBody},${sectionMode}  
132     
133</div --> 
134 
135 
136<html> 
137  <head> 
138    <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
139    <title>Digital Signage Sample</title>	 
140    <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> 
141  </head> 
142 
143  <body id="container"> 
144 
145        <div id="titleDiv">${title}</div> 
146        <div id="claimTextDiv">${claimText}</div> 
147        <div id="previewImageDiv"><img id="previewImage" src="${previewImage}" /></div> 
148        <div id="shortDescDiv">${shortDesc}</div> 
149           	 
150  </body>  
151</html> 
152 
153 
154<!-- map-section -->  
155 
156<#assign lat = ""> 
157<#assign lng = ""> 
158<#if geoRef ??> 
159  <#if geoRef.getData()?has_content  > 
160    <#assign ldata = geoRef.getData() !> 
161    <#assign adata=ldata?split(",")>  
162    <#assign lat=adata[0] >  
163    <#assign lng=adata[1] >  
164  </#if> 
165</#if> 
166<div style="display:none;"> ${lat}  ${lng} </div> 
167 
168 
169<div class="suggestions" id="minimapstatic" style="display:none">&nbsp;</div> 
170 
171<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyALSip-FAXX8zEFGMHR7WF1NNqrZ6HzXBw&callback=initMap" 
172  type="text/javascript"></script> 
173   
174<style> 
175  div#minimapstatic img { 
176    max-width: none; 
177
178</style> 
179 
180<#if (lat?has_content)> 
181 
182<script> 
183     
184     
185    /* MAP */ 
186    gmconf = { 
187      lat:${lat}, 
188      lng:${lng}, 
189      kmldata: "", 
190      title:"" 
191    }; 
192     
193    function initMap() { 
194      $("#minimapstatic").show(); 
195      $("#minimapstatic").css("height","533px").css("margin-top","62px"); 
196      var posLatLng = {lat: gmconf.lat, lng: gmconf.lng}; 
197       
198      var map = new google.maps.Map(document.getElementById('minimapstatic'), { 
199        center: posLatLng, 
200        disableDefaultUI: true, 
201        scrollwheel: false, 
202        zoom: 10 
203      }); 
204       
205      var posMarker = new google.maps.Marker({ 
206        position: posLatLng, 
207        map: map, 
208        title:  gmconf.title 
209      }); 
210       
211       
212       
213
214    
215    if (gmconf.lat !== NaN) { 
216      initMap(); 
217
218</script> 
219</#if> 
220 
221 
222     
223<!-- /.map-section --> 
224 
225</#if>