Galleria fotografica 2018 - Industria 4.0
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing: ==> cur_Photogallery [in template "10155#10195#421996" at line 64, column 68] ---- 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: ${cur_Photogallery.getData().replace(... [in template "10155#10195#421996" at line 64, column 66] ----
1<div id="pagina-argomento" class="assets-news-container container-fluid">
2
3 #set ($plid = $request.theme-display.get("plid"))
4 #set ($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
5
6 #set ($listAncestors = $layoutLocalService.getLayout($mathTool.toNumber($plid)).getAncestors())
7 #set ($currLayout = $layoutLocalService.getLayout($mathTool.toNumber($plid)) )
8 #set ($currLayoutParent = $layoutLocalService.getLayout($mathTool.toNumber( $currLayout.getParentPlid() )) )
9
10 #if ( $currLayoutParent.isRootLayout() == true )
11 #set ( $iconArgoment = $currLayout.getExpandoBridge().getAttribute("icona") )
12 #set ( $colorArgoment = $currLayout.getExpandoBridge().getAttribute("colore-icona") )
13 #else
14 #set ( $num = $listAncestors.size() - 2 )
15 #set ( $iconArgoment = $listAncestors.get($num).getExpandoBridge().getAttribute("icona") )
16 #set ( $colorArgoment = $listAncestors.get($num).getExpandoBridge().getAttribute("colore-icona") )
17 #end
18
19 <script type="text/javascript">
20 $(document).ready(function() {
21 $( '<style type="text/css">.aui .portlet-navigation .nav-menu li a.selected{border-left: 5px solid $colorArgoment;background-color: white}</style>' ).appendTo( "head" );
22
23 var size = $(".titolo-argomento").height();
24 if (size > 100){
25 $(".titolo-argomento").css('line-height','1');
26 }
27
28 });
29 </script>
30
31
32 <div class="table">
33 <div class="row-table">
34 #if ( $iconArgoment )
35 <div class="cell-table min-width-table"><span class="icona-argomento circle-block rt-icon-$iconArgoment"></span></div>
36 #end
37 <div class="cell-table"><h1 class="title titolo-argomento">$reserved-article-title.data</h1> </div>
38 </div>
39 </div>
40
41 #if (! $Immagine.getData().isEmpty() )
42 #if ( $Immagine.getChild("MostraSoloElenco").getData() != "true")
43 <img class="img-top img-responsive" alt="$Immagine.getChild('TestoAlternativoImmagine').getData()" src="$Immagine.getData().replace("&","&")" />
44 #end
45 #end
46
47 #if (! $IdVideoYoutube.getData().isEmpty() )
48 <div class="video">
49 <iframe width="460" height="315" src="https://www.youtube-nocookie.com/embed/$IdVideoYoutube.getData()" allowfullscreen style="width: 100%; border:0">
50 $IdVideoYoutube.getChild("TestoAlternativoVideo").getData()
51 </iframe>
52 </div>
53 #end
54 #if (! $Sottotitolo.getData().isEmpty() )
55 <h4 style="padding: 15px 0 10px 0;font-weight: normal;font-style: italic;">$Sottotitolo.getData()</h4>
56 #end
57
58
59 #if (! $Photogallery.getData().isEmpty())
60 <div class="foto-gallery">
61 <h3 class="subtitle text-uppercase">Galleria Fotografica</h3>
62 <div id="makeMeScrollable">
63 #foreach ($cur_Photogallery in $Photogallery.getSiblings())
64 <a href="${cur_Photogallery.getData().replace("&","&")}.jpg" style="float: left;">
65 <img alt="$cur_Photogallery.getChild('TestoAlternativoPhotogallery').getData()" src="$cur_Photogallery.getData().replace("&","&")" style="width:300px; height: 200px;"/>
66 </a>
67 #end
68
69 </div>
70 </div>
71 #end
72
73 <!-- <div class="contenuto">$Contenuto.getData()</div> -->
74
75
76 <div class="pull-right" style="margin: 15px 0;">
77 <i>Ultimo aggiornamento: #set ($portalBeanLocator = $portal.getClass().forName('com.liferay.portal.kernel.bean.PortalBeanLocatorUtil'))
78#set ($dateFormatFactory = $portalBeanLocator.locate('com.liferay.portal.kernel.util.DateFormatFactoryUtil'))
79#set ($indexFormat = $dateFormatFactory.getSimpleDateFormat('EEE, dd MMM yyyy hh:mm:ss Z'))
80#set ($modified_date = $indexFormat.parse($reserved-article-modified-date.getData()))
81$dateTool.format("dd.MM.yyyy",$modified_date) </i>
82 </div>
83
84 <div class="clearfix"></div>
85
86 <div class="post-social pull-right">
87 <div class="condividi text-uppercase">Condividi</div>
88 <ul class="inline">
89 <li>
90 <a class="fb_share" href="" title="Condividi su Facebook">
91 <span class="hide">Condividi su Facebook</span>
92 <span class="icon-stack" >
93 <i class="icon-circle icon-stack-base"></i>
94 <i class="icon-facebook icon-light"></i>
95 </span>
96 </a>
97 </li>
98 <li>
99 <a class="gplus" href="" title="Condividi su google plus">
100 <span class="hide">Condividi su google plus</span>
101 <span class="icon-stack" >
102 <i class="icon-circle icon-stack-base"></i>
103 <i class="icon-google-plus icon-light"></i>
104 </span>
105 </a>
106 </li>
107 <li>
108 <a class="tweet" href="" title="Condividi su twitter">
109 <span class="hide">Condividi su twitter</span>
110 <span class="icon-stack" >
111 <i class="icon-circle icon-stack-base"></i>
112 <i class="icon-twitter icon-light"></i>
113 </span>
114 </a>
115 </li>
116 </ul>
117 </div>
118 <div class="clearfix"></div>
119
120 #if( $MostraPagineAllegate )
121 #if ($getterUtil.getBoolean($MostraPagineAllegate.getData()))
122 #set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService"))
123
124 #if (!$PagineAllegate.getSiblings().get(0).data.isEmpty())
125 <h3 class="subtitle text-uppercase">Approfondimenti</h3>
126 <div class="table tabella-allegati">
127 #foreach ($cur_Pagina in $PagineAllegate.getSiblings())
128 #if($validator.isNotNull($cur_Pagina.getData()))
129 #set($currentLayout = $layoutLocalService.getLayout($getterUtil.getLong($groupId),false,$getterUtil.getLong($cur_Pagina.getData())))
130 <a href="$Enlace.getUrl()"></a>
131 <div class="row-table attachments">
132 <div class="cell-table min-width-table"><i class="icon-circle-arrow-right icon-2x"></i></div>
133 <div class="cell-table"><a href="$cur_Pagina.getFriendlyUrl()">$currentLayout.getName()</a></div>
134 </div>
135 #end
136 #end
137 </div>
138 #end
139 #end
140 #end
141
142 #if (!$Documenti.getSiblings().get(0).data.isEmpty() || $Documenti.getSiblings().size() > 1 )
143
144 <h3 class="subtitle text-uppercase">Documenti Allegati</h3>
145
146 #set ($fileEntryLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService"))
147 #set ($scopeGroupId = $getterUtil.getLong($request.theme-display.scope-group-id))
148 #set ($textFormatter = $portal.getClass().forName('com.liferay.portal.kernel.util.TextFormatter').newInstance())
149
150 <div class="table tabella-allegati">
151 #foreach ($cur_Documenti in $Documenti.getSiblings())
152
153 #if(!$cur_Documenti.data.isEmpty())
154
155 ## Get the group ID of the document library you are referring to
156 #set ($gid = $getterUtil.getLong($cur_Documenti.getData().split("/").get(2)))
157
158 ## Get the folder ID of the DL
159 #set ($fid = $getterUtil.getLong($cur_Documenti.getData().split("/").get(3)))
160
161 ## Get the file title
162 #set ($fileTitle = $cur_Documenti.getData().split("/").get(4))
163
164 ## (I assume you are using UTF-8 as charset)
165 #set ($tmp = {})
166 #set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance())
167 #set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))
168 #set ($uuid = $cur_Documenti.getData().split("/").get(5))
169
170 #set ($fileEntry = $fileEntryLocalService.getDLFileEntryByUuidAndGroupId($uuid, $gid))
171
172 <div class="row-table attachments">
173 <div class="cell-table min-width-table"><i class="icon-file icon-2x"></i></div>
174 <div class="cell-table"><a href="$cur_Documenti.getData()" target="_blank">$fileTitle</a></div>
175 <span class="cell-table">[ $textFormatter.formatStorageSize($fileEntry.getSize(), $locale) - $fileEntry.getExtension() ]</span>
176 </div>
177 #end
178 #end
179 </div>
180
181 #end
182
183
184
185
186
187
188</div>