Webtartalom-megjelenítő [Webtown]

Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing:
==> cW  [in template "10155#10195#null" at line 109, column 61]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${cW}  [in template "10155#10195#null" at line 109, column 59]
----
1#set ($publish_date = $dateTool.toDate('EEE, dd MMM yyyy hh:mm:ss Z', $reserved-article-display-date.getData(), $localeUtil.getDefault())) 
2<article class="article-detailed"> 
3    <h2 class="colorize">$title.getData()</h2> 
4    <div class="row-fluid"> 
5        <div class="span2"> 
6            <time datetime="$dateTool.format('yyyy-MM-dd HH:mm', $publish_date, $locale)"> <span>$dateTool.format('MMMM', $publish_date, $locale)</span><strong>$dateTool.format('d', $publish_date, $locale)</strong><em>$dateTool.format('yyyy', $publish_date, $locale)</em></time> 
7        </div> 
8#if ($validator.isNotNull($text_1.getData())) 
9        <div class="span10"> 
10            $text_1.getData() 
11        </div> 
12#end 
13    </div> 
14#if ($validator.isNotNull($big_image.getData())) 
15    #if ($validator.isNotNull($big_image_alt.getData())) 
16    <p><img class="article-image" src="$big_image.getData()" alt="$big_image_alt.getData()" /></p> 
17    #else 
18    <p> 
19        #set ($dlLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppLocalService")) 
20        #set($imagePath = $httpUtil.getPath($httpUtil.fixPath($big_image.getData()))) 
21        #set($imagePathArray = $stringUtil.split($imagePath, "/")) 
22        #set($imageGroupId = $getterUtil.getLong($imagePathArray.get(1))) 
23        #set($imageFolderId = $getterUtil.getLong($imagePathArray.get(2))) 
24        #set($imageTitle = $httpUtil.decodeURL($imagePathArray.get(3), true)) 
25        #set($imageUuid = $getterUtil.getString($imagePathArray.get(4))) 
26         
27        #set ($imageObj = $dlLocalService.getFileEntryByUuidAndGroupId($imageUuid, $imageGroupId)) 
28        <img class="article-image" src="$big_image.getData()" alt="$imageObj.getTitle()" /> 
29    </p> 
30    #end 
31#end 
32#if ($validator.isNotNull($text_2.getData())) 
33    <div class="row-fluid"> 
34        <div class="span10 offset2"> 
35            $text_2.getData() 
36        </div> 
37    </div> 
38#end 
39#if ($validator.isNotNull($quote_text.getData())) 
40    <blockquote class="blockquote-webcontent"> 
41    #if ($validator.isNotNull($quote_image.getData())) 
42        #if ($validator.isNotNull($quote_image_alt.getData())) 
43            <img src="$quote_image.getData()" alt="$quote_image_alt.getData()" /> 
44        #else 
45            #set($dlLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppLocalService")) 
46            #set($imagePath = $httpUtil.getPath($httpUtil.fixPath($quote_image.getData()))) 
47            #set($imagePathArray = $stringUtil.split($imagePath, "/")) 
48            #set($imageGroupId = $getterUtil.getLong($imagePathArray.get(1))) 
49        	#set($imageFolderId = $getterUtil.getLong($imagePathArray.get(2))) 
50        	#set($imageTitle = $httpUtil.decodeURL($imagePathArray.get(3), true)) 
51        	#set($imageUuid = $getterUtil.getString($imagePathArray.get(4))) 
52            #set($imageObj = $dlLocalService.getFileEntryByUuidAndGroupId($imageUuid, $imageGroupId)) 
53            <img src="$quote_image.getData()" alt="$imageObj.getTitle()" /> 
54        #end 
55    #end 
56        <div class="quote-content"> 
57            $quote_text.getData() 
58            <footer>- <cite>$quote_author.getData()</cite> -</footer> 
59        </div> 
60    </blockquote> 
61#end 
62#if (!$youtube_id.getSiblings().isEmpty()) 
63    #foreach ($cur_youtube_id in $youtube_id.getSiblings()) 
64        #if ($validator.isNotNull($cur_youtube_id.getData())) 
65    <div class="embed-responsive embed-responsive-16by9"> 
66        <iframe class="embed-responsive-item" src="//www.youtube.com/embed/$cur_youtube_id.getData()?rel=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe> 
67    </div> 
68        #end 
69    #end 
70#end 
71#if (!$gallery_text.getSiblings().isEmpty() && $validator.isNotNull($gallery_text.getSiblings().get(0).gallery_image.getData())) 
72    <div class="gallery" id="${randomNamespace}gallery"> 
73        <div class="gallery-images-outer"> 
74            <div class="gallery-images-container"> 
75        #set ($c = $gallery_text.getSiblings().size()) 
76                <ul class="gallery-images"> 
77        #set ($i = 0) 
78        #if (!$gallery_text.getSiblings().isEmpty()) 
79            #foreach ($cur_text in $gallery_text.getSiblings()) 
80                #set ($i = $i + 1) 
81                    <li data-imageid="$i" style="background-image: url('$cur_text.gallery_image.getData()');"> 
82                    #if ($validator.isNotNull($cur_text.gallery_image_alt.getData())) 
83                        <img src="$cur_text.gallery_image.getData()" alt="$cur_text.gallery_image_alt.getData()"> 
84                    #else 
85                        #set ($dlLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppLocalService")) 
86                        #set($imagePath = $httpUtil.getPath($httpUtil.fixPath($cur_text.gallery_image.getData()))) 
87                        #set($imagePathArray = $stringUtil.split($imagePath, "/")) 
88	                    #set($imageGroupId = $getterUtil.getLong($imagePathArray.get(1))) 
89                    	#set($imageFolderId = $getterUtil.getLong($imagePathArray.get(2))) 
90                    	#set($imageTitle = $httpUtil.decodeURL($imagePathArray.get(3), true)) 
91                    	#set($imageUuid = $getterUtil.getString($imagePathArray.get(4))) 
92	                    #set ($imageObj = $dlLocalService.getFileEntryByUuidAndGroupId($imageUuid, $imageGroupId)) 
93                        <img src="$cur_text.gallery_image.getData()"  alt="$imageObj.getTitle()" /> 
94                    #end 
95                        #if ($cur_text.getData() != '') 
96                        <span class="image-text">$cur_text.getData()</span> 
97                        #end 
98                    </li> 
99            #end 
100        #end 
101                </ul> 
102            </div> 
103        </div> 
104        <div class="gallery-indexes-outer"> 
105            <div class="gallery-indexes-container"> 
106    #set ($cW = 156 * $i) 
107    #if ($i < 6) 
108    #set ($pL = ((6 - $i) * 156) / 2) 
109                <ul class="gallery-indexes" style="width: ${cW}px; padding-left: ${pL}px;"> 
110    #else 
111                <ul class="gallery-indexes" style="width: ${cW}px;"> 
112    #end 
113    #set ($i = 0) 
114    #if (!$gallery_text.getSiblings().isEmpty()) 
115        #foreach ($cur_text in $gallery_text.getSiblings()) 
116            #set ($i = $i + 1) 
117            #if ($i == 1) 
118                    <li class="current" data-imageid="$i"><a href="$cur_text.gallery_image.getData()" style="background-image: url('$cur_text.gallery_image.getData()');"></a></li> 
119            #else 
120                    <li data-imageid="$i"><a href="$cur_text.gallery_image.getData()" style="background-image: url('$cur_text.gallery_image.getData()');"></a></li> 
121            #end 
122        #end 
123    #end 
124                </ul> 
125            </div> 
126        </div> 
127    </div>    
128 
129    <script> 
130        AUI().ready('transition', 'event-move', function (A) { 
131            var galleryOuter = A.one('#${randomNamespace}gallery .gallery-images-outer'); 
132            var galleryWidth = parseInt(galleryOuter.getComputedStyle('width')); 
133            var gallerySize = A.all('#${randomNamespace}gallery .gallery-images li').size(); 
134            A.one('#${randomNamespace}gallery .gallery-images').setStyle('width', (galleryWidth * gallerySize) + 'px'); 
135            A.all('#${randomNamespace}gallery .gallery-images li').setStyles({'width': galleryWidth + 'px', 'height': (galleryWidth * .75) + 'px'}); 
136            A.Node.create('<span class="gallery-prev">előző</span>') 
137            .appendTo(galleryOuter) 
138            .on('click', function(){ 
139                changeImagePrev(); 
140            }); 
141            A.Node.create('<span class="gallery-next">következő</span>') 
142            .appendTo(galleryOuter) 
143            .on('click', function(){ 
144                changeImageNext(); 
145            }); 
146            A.one('#${randomNamespace}gallery .gallery-images-container').on("gesturemovestart", function(e) { 
147                var item = e.currentTarget; 
148                item.setData("swipeStart", e.pageX); 
149                item.once("selectstart", function(e) { 
150                    e.preventDefault(); 
151                }); 
152                item.once("gesturemoveend", function(e) { 
153                    var swipeStart = item.getData("swipeStart"), 
154                        swipeEnd = e.pageX, 
155                        isSwipeLeft = (swipeStart - swipeEnd) > 50; 
156                    if (isSwipeLeft) { 
157                        changeImageNext(); 
158                    } else { 
159                        changeImagePrev(); 
160
161                }); 
162            }); 
163            A.all('#${randomNamespace}gallery .gallery-indexes li a').each(function(){ 
164                this.on('click', function(e){ 
165                    e.preventDefault(); 
166                    changeImage(this.get('parentNode').getData('imageid')); 
167                }); 
168            }); 
169             
170            function changeImagePrev() { 
171                var currentLeft = parseInt(A.one('#${randomNamespace}gallery .gallery-images').getStyle('left')); 
172                if (currentLeft < 0) { 
173                    changeImage(A.one('#${randomNamespace}gallery .gallery-indexes .current').previous().getData('imageid')); 
174
175
176             
177            function changeImageNext() { 
178                var currentLeft = parseInt(A.one('#${randomNamespace}gallery .gallery-images').getStyle('left')); 
179                if (currentLeft > -((gallerySize - 1) * galleryWidth)) { 
180                    changeImage(A.one('#${randomNamespace}gallery .gallery-indexes .current').next().getData('imageid')); 
181
182
183 
184            function changeImage(changeTo) { 
185                var changeFrom = A.one('#${randomNamespace}gallery .gallery-indexes .current').getData('imageid'); 
186                var currentLeft = parseInt(A.one('#${randomNamespace}gallery .gallery-images').getStyle('left')); 
187                var moveImages = ((changeFrom - changeTo) * galleryWidth); 
188                A.one('#${randomNamespace}gallery .gallery-images').transition({ 
189                    left: (currentLeft + moveImages) + 'px', 
190                    duration: 0.5 
191                }); 
192                var currentIndexLeft = parseInt(A.one('#${randomNamespace}gallery .gallery-indexes').getStyle('left')); 
193                var currentIndexFirst = (-(currentIndexLeft - 156) / 156); 
194                var currentIndexLast = currentIndexFirst + 5; 
195                if (changeTo < currentIndexFirst) { 
196                    A.one('#${randomNamespace}gallery .gallery-indexes').transition({ 
197                        left: (currentIndexLeft + 156) + 'px', 
198                        duration: 0.5 
199                    }); 
200                } else if (changeTo > currentIndexLast) {            
201                    A.one('#${randomNamespace}gallery .gallery-indexes').transition({ 
202                        left: (currentIndexLeft - 156) + 'px', 
203                        duration: 0.5 
204                    }); 
205
206                A.one('#${randomNamespace}gallery .gallery-indexes .current').removeClass('current'); 
207                A.one('#${randomNamespace}gallery .gallery-indexes [data-imageid=' + changeTo + ']').addClass('current'); 
208
209             
210            window.onresize = function() { 
211                galleryWidth = parseInt(galleryOuter.getComputedStyle('width')); 
212                A.one('#${randomNamespace}gallery .gallery-images').setStyle('width', (galleryWidth * gallerySize) + 'px'); 
213                A.all('#${randomNamespace}gallery .gallery-images li').setStyles({'width': galleryWidth + 'px', 'height': (galleryWidth * .75) + 'px'}); 
214
215        }); 
216    </script> 
217#end 
218#if ($validator.isNotNull($banner_text.getData())) 
219    <div class="banner-2-button"> 
220    #if ($validator.isNotNull($banner_fa_icon.getData())) 
221        <span><i class="$banner_fa_icon.getData()"></i></span> 
222    #end 
223        <span>$banner_text.getData()</span> 
224        <span><a href="$button_1_url.getData()">$button_1_text.getData()</a></span> 
225    #if ($validator.isNotNull($button_2_text.getData())) 
226        <span><a href="$button_2_url.getData()">$button_2_text.getData()</a></span> 
227    #end 
228    </div> 
229#end 
230</article> 
231 
232  <div class="row-fluid"> 
233 <div  class="span12" > 
234  
235 <div id="addthis_wrapper"> 
236    <div class='nn-share-left'> 
237 
238          <span class="text_bold">Ossza meg az ismerőseivel is</span> 
239         
240          <!-- AddThis Button BEGIN --> 
241         
242          <div class="addthis_toolbox addthis_default_style"> 
243            <a class="addthis_button_facebook" title="Megosztás Facebookon" href="#"> 
244              <img alt="Megosztás Facebookon" src="https://www.nn.hu/o/nn-theme/images/facebook.png">  
245            </a> 
246            <a class="addthis_button_twitter" title="Megosztás Twitteren" href="#"> 
247              <img alt="Megosztás Twitteren" src="https://www.nn.hu/o/nn-theme/images/twitter.png">  
248            </a> 
249            <a class="addthis_button_linkedin" title="Megosztás LinkedIn" href="#"> 
250              <img alt="Megosztás LinkedIn" src="https://www.nn.hu/o/nn-theme/images/linkedin.png">  
251            </a> 
252            <div class="atclear"> 
253            </div> 
254          </div> 
255 
256    </div> 
257 
258  <script type="text/javascript"> 
259      var addthis_config = {"data_track_clickback":true,"ui_language":"hu"}; 
260  </script> 
261  <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-56938ee02e9edfea"></script> 
262 
263 
264         
265  <!-- AddThis Button END --> 
266   
267  <!-- Like button begin --> 
268   
269  <div class='nn-share-right'> 
270   
271      <span class="text_bold">Kövessen minket a facebook-on is</span> 
272 
273        <div class="fb-page"  
274            data-href="https://www.facebook.com/nnbiztosito"  
275            data-tabs="timeline"  
276            data-width="300"  
277            data-height="70"  
278            data-small-header="true"  
279            data-adapt-container-width="true"  
280            data-hide-cover="true"  
281            data-show-facepile="false"> 
282            <div class="fb-xfbml-parse-ignore"> 
283                <blockquote cite="https://www.facebook.com/nnbiztosito"> 
284                    <a href="https://www.facebook.com/nnbiztosito">NN</a> 
285                </blockquote> 
286            </div> 
287        </div> 
288     
289    </div> 
290    </div> 
291     
292    <!-- Like button end --> 
293</div> 
294</div>