dettaglio ricerca finanziata
Maria Giulia Cecchini
modificato 1 Anno fa.
Si è verificato un errore nell'elaborarazione del modello.
The string doesn't match the expected date/time/date-time format. The string to parse was: "ven, 15 nov 2019 08:50:00 +0000". The expected format was: "EEE, dd MMM yyyy HH:mm:ss zzz". The nested reason given follows: Unparseable date: "ven, 15 nov 2019 08:50:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign date = data_pubblicazione?dat... [in template "20097#20123#48031" at line 78, column 17] ----
1<#-- Ricerca Finanziata Template -->
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')/>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)/>
8<#assign article = journalArticleLocalService.getArticle(groupId, journalArticleId)>
9<#assign assetLinkLocalService=serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")>
10<#assign currentArticleAssetEntryId = assetEntry.getEntryId() />
11<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
12
13<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
14
15<#assign customColor = getterUtil.getString(themeDisplay.getThemeSetting("color-setting"))/>
16
17<#assign boxRegion = languageUtil.get(locale, "reg-tender") />
18<#assign boxScope = languageUtil.get(locale, "scope") />
19<#assign boxDuration = languageUtil.get(locale, "duration") />
20<#assign boxWebSite = languageUtil.get(locale, "web-site") />
21
22<#assign visitSite = languageUtil.get(locale, "visit-site") />
23
24<#assign title = .vars['reserved-article-title'].data />
25<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
26
27<#assign descrBreve = "">
28
29<#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
30<#assign img = docXml.valueOf("//dynamic-element[@field-reference='immaginePrincipale']/dynamic-content/text()")?replace("\\","") />
31
32<#-- Controllo visualizza particellare -->
33<#assign particellare = "" />
34<#assign posizione = "" />
35<#if getterUtil.getBoolean(GruppoCampi17717372.Booleano60921145.getData())>
36 <#assign particellare = "particelle" />
37
38<#-- Controllo posizione particellare -->
39 <#if (GruppoCampi17717372.SelezionaDaElenco34191815.getData())?? && GruppoCampi17717372.SelezionaDaElenco34191815.getData()?has_content >
40 <#if GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione88456408">
41 <#assign posizione = "top-left" />
42 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
43 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione26360124">
44 <#assign posizione = "bot-left" />
45 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
46 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione50555342">
47 <#assign posizione = "top-right" />
48 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
49 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione44196487">
50 <#assign posizione = "bot-right" />
51 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
52 </#if>
53 </#if>
54</#if>
55
56<section class="container-fluid">
57 <div class="container col-xxl-12 mb-lg-5 mb-4">
58 <#-- Categoria, Titolo, Descrizione Breve, Immagine -->
59 <div class="row">
60 <div class="col-lg-6">
61 <#-- Categoria -->
62 <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
63 <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/>
64 <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') />
65
66 <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
67 <#assign category = entry.getCategories() />
68
69 <#list category as c>
70 <p class="mb-4 text-muted"> ${c.getTitle(locale)?upper_case} </p>
71 </#list>
72
73 <#-- Titolo -->
74 <#if title?has_content>
75 <h1>${title}</h1>
76 </#if>
77
78 <#assign date = data_pubblicazione?date("EEE, dd MMM yyyy HH:mm:ss zzz")>
79 <#assign dateTimeFormat = languageUtil.get(locale, "dd MMMM yyyy")>
80 <#assign date = date?string(dateTimeFormat)>
81 <p class="mb-4 text-muted">
82 <i class="align-middle me-2 material-symbols-outlined">event</i>
83 ${date}
84 </p>
85
86 <#if (descrizioneBreve.getData())??>
87 <#assign descrBreve = descrizioneBreve.getData()>
88 ${descrBreve}
89 </#if>
90 </div>
91
92 <div class="col-lg-6">
93 <div class="row">
94 <div class="col-lg-12">
95 <#if (immaginePrincipale.getData())?? && immaginePrincipale.getData() != "">
96 <img alt="${immaginePrincipale.getAttribute("alt")}" data-fileentryid="${immaginePrincipale.getAttribute("fileEntryId")}" src="${immaginePrincipale.getData()}" width="100%" height="auto" />
97 <#else>
98 <img alt="ExtraRed" src="/documents/d/guest/art" width="100%" height="auto" />
99 </#if>
100 </div>
101 </div>
102 </div>
103 </div>
104
105 <#-- Loghi, Box Azzurro -->
106 <div class="row pt-lg-5 pt-4">
107 <div class="col-lg-6 pt-0 mb-lg-5 ricerca-loghi" style="background-color: #ffffff; display: flex; align-items: center; justify-content: space-between;">
108 <#if infoProgetto.logoProgetto.getSiblings()?has_content>
109 <#list infoProgetto.logoProgetto.getSiblings() as cur_infoProgetto_logoProgetto>
110 <#if (cur_infoProgetto_logoProgetto.getData())?? && cur_infoProgetto_logoProgetto.getData() != "">
111 <img alt="${cur_infoProgetto_logoProgetto.getAttribute("alt")}" data-fileentryid="${cur_infoProgetto_logoProgetto.getAttribute("fileEntryId")}" src="${cur_infoProgetto_logoProgetto.getData()}" />
112 </#if>
113 </#list>
114 </#if>
115 </div>
116 <div class="col-lg-6 pt-0 mb-lg-5">
117 <#-- Box Azzurro -->
118 <div class="row bg-red-azzurro-cta-dark p-4 p-lg-5">
119 <#list infoProgetto.getSiblings() as cur_esperienza>
120 <#assign bando = "" >
121 <#if (cur_esperienza.bandoProgetto.getData())?? && cur_esperienza.bandoProgetto.getData() != "">
122 <#assign bando = cur_esperienza.bandoProgetto.getData() >
123 <div class="col-3 mb-3 pr-0 color50percent">
124 ${boxRegion}
125 </div>
126 <div class="col-9 mb-3">
127 ${bando}
128 </div>
129 </#if>
130
131 <#assign ambito = "" >
132 <#if (cur_esperienza.ambitoProgetto.getData())?? && cur_esperienza.ambitoProgetto.getData() != "">
133 <#assign ambito = cur_esperienza.ambitoProgetto.getData() >
134 <div class="col-3 mb-3 pr-0 color50percent">
135 ${boxScope}
136 </div>
137 <div class="col-9 mb-3">
138 ${ambito}
139 </div>
140 </#if>
141
142 <#assign durata = "" >
143 <#if (cur_esperienza.durataProgetto.getData())?? && cur_esperienza.durataProgetto.getData() != "">
144 <#assign durata = cur_esperienza.durataProgetto.getData() >
145 <div class="col-3 mb-3 pr-0 color50percent">
146 ${boxDuration}
147 </div>
148 <div class="col-9 mb-3">
149 ${durata}
150 </div>
151 </#if>
152
153 <#assign site = "" >
154 <#if (cur_esperienza.sitoProgetto.getData())?? && cur_esperienza.sitoProgetto.getData() != "">
155 <#assign site = cur_esperienza.sitoProgetto.getData() >
156 <div class="col-3 mb-3 pr-0 color50percent pr-0">
157 ${boxWebSite}
158 </div>
159 <div class="col-9 mb-3">
160 <a href="https://${site}" target="_blank">${site}</a>
161 </div>
162 </#if>
163 </#list>
164 </div>
165 </div>
166 </div>
167
168 <#-- Titolo Secondario, Immagini, Testo, CTA -->
169 <div class="container col-xxl-12 pt-lg-5 pt-4">
170 <div class="row">
171 <div class="col-lg-6">
172 <div class="row">
173 <#assign titleSec = "" >
174 <#if (titoloSec.getData())?? && titoloSec.getData() != "">
175 <div class="col-lg-12">
176 <#assign titleSec = titoloSec.getData() >
177 <h2>${titleSec}</h2>
178 </div>
179 </#if>
180 <div class="pt-lg-2 pt-0 col-lg-12">
181 <div class="row">
182 <#if contMultimediale.fileMultimediale.getData()?has_content>
183 <#list contMultimediale.getSiblings() as cur_contMultimediale>
184 <#assign splitter = cur_contMultimediale.fileMultimediale.getData()?split("/") />
185 <#if (cur_contMultimediale.fileMultimediale.getData())?? && cur_contMultimediale.fileMultimediale.getData() != "" >
186 <#if cur_contMultimediale?is_first>
187 <div class="col-lg-12 col-12 float-end mb-5">
188 <#else>
189 <div class="col-lg-6 col-6 float-end mb-5">
190 </#if>
191 <a class="glightbox" href="${cur_contMultimediale.fileMultimediale.getData()}" data-title="" data-description="${cur_contMultimediale.testoMultimediale.getData()}">
192 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
193 <#assign mimeType = file.getMimeType() />
194 <#if mimeType?contains("video")>
195 <video src="${cur_contMultimediale.fileMultimediale.getData()}" controls width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}" type="video/mp4">
196 </video>
197 <#else>
198 <img src="${cur_contMultimediale.fileMultimediale.getData()}" width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}"/>
199 </#if>
200 </a>
201 </div>
202 </#if>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 <div class="col-lg-6">
210 <div class="row">
211 <div class="col-lg-12">
212 <#assign textSec = "" >
213 <#if (testoSec.getData())?? && testoSec.getData() != "">
214 <#assign textSec = testoSec.getData() >
215 ${textSec}
216 </#if>
217
218 <#assign titleCTA = "" >
219 <#if (ctaProgetto.testoCTAProgetto.getData())?? && ctaProgetto.testoCTAProgetto.getData() != "">
220 <div class="pt-lg-3 pt-0 col-lg-12 mb-5">
221 <div class="float-lg-end float-end me-lg-n5 me-n4 me-ms-n4 col-lg-10 col-10 bg-red-red-cta-dark p-4 p-lg-5">
222 <div class="row">
223 <#assign titleCTA = ctaProgetto.testoCTAProgetto.getData() >
224 <h2 class="fw-normal">${titleCTA}</h2>
225 <#if (ctaProgetto.linkCTAProgetto.getData())?? && ctaProgetto.linkCTAProgetto.getData() != "">
226 <a style="display: block" href="${ctaProgetto.linkCTAProgetto.getData()}" target="_blank">
227 <i class="align-middle material-symbols-outlined">explore</i>
228 <span class="align-middle">${visitSite}</span>
229 </a>
230 </#if>
231 </div>
232 </div>
233 </div>
234 </#if>
235 </div>
236 </div>
237 </div>
238 </div>
239 </div>
240 </div>
241</section>
Maria Giulia Cecchini
modificato 1 Anno fa.
Si è verificato un errore nell'elaborarazione del modello.
The string doesn't match the expected date/time/date-time format. The string to parse was: "lun, 26 mar 2018 09:05:00 +0000". The expected format was: "EEE, dd MMM yyyy HH:mm:ss zzz". The nested reason given follows: Unparseable date: "lun, 26 mar 2018 09:05:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign date = data_pubblicazione?dat... [in template "20097#20123#48031" at line 78, column 17] ----
1<#-- Ricerca Finanziata Template -->
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')/>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)/>
8<#assign article = journalArticleLocalService.getArticle(groupId, journalArticleId)>
9<#assign assetLinkLocalService=serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")>
10<#assign currentArticleAssetEntryId = assetEntry.getEntryId() />
11<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
12
13<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
14
15<#assign customColor = getterUtil.getString(themeDisplay.getThemeSetting("color-setting"))/>
16
17<#assign boxRegion = languageUtil.get(locale, "reg-tender") />
18<#assign boxScope = languageUtil.get(locale, "scope") />
19<#assign boxDuration = languageUtil.get(locale, "duration") />
20<#assign boxWebSite = languageUtil.get(locale, "web-site") />
21
22<#assign visitSite = languageUtil.get(locale, "visit-site") />
23
24<#assign title = .vars['reserved-article-title'].data />
25<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
26
27<#assign descrBreve = "">
28
29<#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
30<#assign img = docXml.valueOf("//dynamic-element[@field-reference='immaginePrincipale']/dynamic-content/text()")?replace("\\","") />
31
32<#-- Controllo visualizza particellare -->
33<#assign particellare = "" />
34<#assign posizione = "" />
35<#if getterUtil.getBoolean(GruppoCampi17717372.Booleano60921145.getData())>
36 <#assign particellare = "particelle" />
37
38<#-- Controllo posizione particellare -->
39 <#if (GruppoCampi17717372.SelezionaDaElenco34191815.getData())?? && GruppoCampi17717372.SelezionaDaElenco34191815.getData()?has_content >
40 <#if GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione88456408">
41 <#assign posizione = "top-left" />
42 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
43 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione26360124">
44 <#assign posizione = "bot-left" />
45 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
46 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione50555342">
47 <#assign posizione = "top-right" />
48 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
49 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione44196487">
50 <#assign posizione = "bot-right" />
51 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
52 </#if>
53 </#if>
54</#if>
55
56<section class="container-fluid">
57 <div class="container col-xxl-12 mb-lg-5 mb-4">
58 <#-- Categoria, Titolo, Descrizione Breve, Immagine -->
59 <div class="row">
60 <div class="col-lg-6">
61 <#-- Categoria -->
62 <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
63 <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/>
64 <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') />
65
66 <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
67 <#assign category = entry.getCategories() />
68
69 <#list category as c>
70 <p class="mb-4 text-muted"> ${c.getTitle(locale)?upper_case} </p>
71 </#list>
72
73 <#-- Titolo -->
74 <#if title?has_content>
75 <h1>${title}</h1>
76 </#if>
77
78 <#assign date = data_pubblicazione?date("EEE, dd MMM yyyy HH:mm:ss zzz")>
79 <#assign dateTimeFormat = languageUtil.get(locale, "dd MMMM yyyy")>
80 <#assign date = date?string(dateTimeFormat)>
81 <p class="mb-4 text-muted">
82 <i class="align-middle me-2 material-symbols-outlined">event</i>
83 ${date}
84 </p>
85
86 <#if (descrizioneBreve.getData())??>
87 <#assign descrBreve = descrizioneBreve.getData()>
88 ${descrBreve}
89 </#if>
90 </div>
91
92 <div class="col-lg-6">
93 <div class="row">
94 <div class="col-lg-12">
95 <#if (immaginePrincipale.getData())?? && immaginePrincipale.getData() != "">
96 <img alt="${immaginePrincipale.getAttribute("alt")}" data-fileentryid="${immaginePrincipale.getAttribute("fileEntryId")}" src="${immaginePrincipale.getData()}" width="100%" height="auto" />
97 <#else>
98 <img alt="ExtraRed" src="/documents/d/guest/art" width="100%" height="auto" />
99 </#if>
100 </div>
101 </div>
102 </div>
103 </div>
104
105 <#-- Loghi, Box Azzurro -->
106 <div class="row pt-lg-5 pt-4">
107 <div class="col-lg-6 pt-0 mb-lg-5 ricerca-loghi" style="background-color: #ffffff; display: flex; align-items: center; justify-content: space-between;">
108 <#if infoProgetto.logoProgetto.getSiblings()?has_content>
109 <#list infoProgetto.logoProgetto.getSiblings() as cur_infoProgetto_logoProgetto>
110 <#if (cur_infoProgetto_logoProgetto.getData())?? && cur_infoProgetto_logoProgetto.getData() != "">
111 <img alt="${cur_infoProgetto_logoProgetto.getAttribute("alt")}" data-fileentryid="${cur_infoProgetto_logoProgetto.getAttribute("fileEntryId")}" src="${cur_infoProgetto_logoProgetto.getData()}" />
112 </#if>
113 </#list>
114 </#if>
115 </div>
116 <div class="col-lg-6 pt-0 mb-lg-5">
117 <#-- Box Azzurro -->
118 <div class="row bg-red-azzurro-cta-dark p-4 p-lg-5">
119 <#list infoProgetto.getSiblings() as cur_esperienza>
120 <#assign bando = "" >
121 <#if (cur_esperienza.bandoProgetto.getData())?? && cur_esperienza.bandoProgetto.getData() != "">
122 <#assign bando = cur_esperienza.bandoProgetto.getData() >
123 <div class="col-3 mb-3 pr-0 color50percent">
124 ${boxRegion}
125 </div>
126 <div class="col-9 mb-3">
127 ${bando}
128 </div>
129 </#if>
130
131 <#assign ambito = "" >
132 <#if (cur_esperienza.ambitoProgetto.getData())?? && cur_esperienza.ambitoProgetto.getData() != "">
133 <#assign ambito = cur_esperienza.ambitoProgetto.getData() >
134 <div class="col-3 mb-3 pr-0 color50percent">
135 ${boxScope}
136 </div>
137 <div class="col-9 mb-3">
138 ${ambito}
139 </div>
140 </#if>
141
142 <#assign durata = "" >
143 <#if (cur_esperienza.durataProgetto.getData())?? && cur_esperienza.durataProgetto.getData() != "">
144 <#assign durata = cur_esperienza.durataProgetto.getData() >
145 <div class="col-3 mb-3 pr-0 color50percent">
146 ${boxDuration}
147 </div>
148 <div class="col-9 mb-3">
149 ${durata}
150 </div>
151 </#if>
152
153 <#assign site = "" >
154 <#if (cur_esperienza.sitoProgetto.getData())?? && cur_esperienza.sitoProgetto.getData() != "">
155 <#assign site = cur_esperienza.sitoProgetto.getData() >
156 <div class="col-3 mb-3 pr-0 color50percent pr-0">
157 ${boxWebSite}
158 </div>
159 <div class="col-9 mb-3">
160 <a href="https://${site}" target="_blank">${site}</a>
161 </div>
162 </#if>
163 </#list>
164 </div>
165 </div>
166 </div>
167
168 <#-- Titolo Secondario, Immagini, Testo, CTA -->
169 <div class="container col-xxl-12 pt-lg-5 pt-4">
170 <div class="row">
171 <div class="col-lg-6">
172 <div class="row">
173 <#assign titleSec = "" >
174 <#if (titoloSec.getData())?? && titoloSec.getData() != "">
175 <div class="col-lg-12">
176 <#assign titleSec = titoloSec.getData() >
177 <h2>${titleSec}</h2>
178 </div>
179 </#if>
180 <div class="pt-lg-2 pt-0 col-lg-12">
181 <div class="row">
182 <#if contMultimediale.fileMultimediale.getData()?has_content>
183 <#list contMultimediale.getSiblings() as cur_contMultimediale>
184 <#assign splitter = cur_contMultimediale.fileMultimediale.getData()?split("/") />
185 <#if (cur_contMultimediale.fileMultimediale.getData())?? && cur_contMultimediale.fileMultimediale.getData() != "" >
186 <#if cur_contMultimediale?is_first>
187 <div class="col-lg-12 col-12 float-end mb-5">
188 <#else>
189 <div class="col-lg-6 col-6 float-end mb-5">
190 </#if>
191 <a class="glightbox" href="${cur_contMultimediale.fileMultimediale.getData()}" data-title="" data-description="${cur_contMultimediale.testoMultimediale.getData()}">
192 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
193 <#assign mimeType = file.getMimeType() />
194 <#if mimeType?contains("video")>
195 <video src="${cur_contMultimediale.fileMultimediale.getData()}" controls width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}" type="video/mp4">
196 </video>
197 <#else>
198 <img src="${cur_contMultimediale.fileMultimediale.getData()}" width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}"/>
199 </#if>
200 </a>
201 </div>
202 </#if>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 <div class="col-lg-6">
210 <div class="row">
211 <div class="col-lg-12">
212 <#assign textSec = "" >
213 <#if (testoSec.getData())?? && testoSec.getData() != "">
214 <#assign textSec = testoSec.getData() >
215 ${textSec}
216 </#if>
217
218 <#assign titleCTA = "" >
219 <#if (ctaProgetto.testoCTAProgetto.getData())?? && ctaProgetto.testoCTAProgetto.getData() != "">
220 <div class="pt-lg-3 pt-0 col-lg-12 mb-5">
221 <div class="float-lg-end float-end me-lg-n5 me-n4 me-ms-n4 col-lg-10 col-10 bg-red-red-cta-dark p-4 p-lg-5">
222 <div class="row">
223 <#assign titleCTA = ctaProgetto.testoCTAProgetto.getData() >
224 <h2 class="fw-normal">${titleCTA}</h2>
225 <#if (ctaProgetto.linkCTAProgetto.getData())?? && ctaProgetto.linkCTAProgetto.getData() != "">
226 <a style="display: block" href="${ctaProgetto.linkCTAProgetto.getData()}" target="_blank">
227 <i class="align-middle material-symbols-outlined">explore</i>
228 <span class="align-middle">${visitSite}</span>
229 </a>
230 </#if>
231 </div>
232 </div>
233 </div>
234 </#if>
235 </div>
236 </div>
237 </div>
238 </div>
239 </div>
240 </div>
241</section>
Maria Giulia Cecchini
modificato 1 Anno fa.
Si è verificato un errore nell'elaborarazione del modello.
The string doesn't match the expected date/time/date-time format. The string to parse was: "gio, 14 gen 2021 09:10:00 +0000". The expected format was: "EEE, dd MMM yyyy HH:mm:ss zzz". The nested reason given follows: Unparseable date: "gio, 14 gen 2021 09:10:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign date = data_pubblicazione?dat... [in template "20097#20123#48031" at line 78, column 17] ----
1<#-- Ricerca Finanziata Template -->
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')/>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)/>
8<#assign article = journalArticleLocalService.getArticle(groupId, journalArticleId)>
9<#assign assetLinkLocalService=serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")>
10<#assign currentArticleAssetEntryId = assetEntry.getEntryId() />
11<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
12
13<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
14
15<#assign customColor = getterUtil.getString(themeDisplay.getThemeSetting("color-setting"))/>
16
17<#assign boxRegion = languageUtil.get(locale, "reg-tender") />
18<#assign boxScope = languageUtil.get(locale, "scope") />
19<#assign boxDuration = languageUtil.get(locale, "duration") />
20<#assign boxWebSite = languageUtil.get(locale, "web-site") />
21
22<#assign visitSite = languageUtil.get(locale, "visit-site") />
23
24<#assign title = .vars['reserved-article-title'].data />
25<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
26
27<#assign descrBreve = "">
28
29<#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
30<#assign img = docXml.valueOf("//dynamic-element[@field-reference='immaginePrincipale']/dynamic-content/text()")?replace("\\","") />
31
32<#-- Controllo visualizza particellare -->
33<#assign particellare = "" />
34<#assign posizione = "" />
35<#if getterUtil.getBoolean(GruppoCampi17717372.Booleano60921145.getData())>
36 <#assign particellare = "particelle" />
37
38<#-- Controllo posizione particellare -->
39 <#if (GruppoCampi17717372.SelezionaDaElenco34191815.getData())?? && GruppoCampi17717372.SelezionaDaElenco34191815.getData()?has_content >
40 <#if GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione88456408">
41 <#assign posizione = "top-left" />
42 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
43 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione26360124">
44 <#assign posizione = "bot-left" />
45 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
46 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione50555342">
47 <#assign posizione = "top-right" />
48 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
49 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione44196487">
50 <#assign posizione = "bot-right" />
51 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
52 </#if>
53 </#if>
54</#if>
55
56<section class="container-fluid">
57 <div class="container col-xxl-12 mb-lg-5 mb-4">
58 <#-- Categoria, Titolo, Descrizione Breve, Immagine -->
59 <div class="row">
60 <div class="col-lg-6">
61 <#-- Categoria -->
62 <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
63 <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/>
64 <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') />
65
66 <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
67 <#assign category = entry.getCategories() />
68
69 <#list category as c>
70 <p class="mb-4 text-muted"> ${c.getTitle(locale)?upper_case} </p>
71 </#list>
72
73 <#-- Titolo -->
74 <#if title?has_content>
75 <h1>${title}</h1>
76 </#if>
77
78 <#assign date = data_pubblicazione?date("EEE, dd MMM yyyy HH:mm:ss zzz")>
79 <#assign dateTimeFormat = languageUtil.get(locale, "dd MMMM yyyy")>
80 <#assign date = date?string(dateTimeFormat)>
81 <p class="mb-4 text-muted">
82 <i class="align-middle me-2 material-symbols-outlined">event</i>
83 ${date}
84 </p>
85
86 <#if (descrizioneBreve.getData())??>
87 <#assign descrBreve = descrizioneBreve.getData()>
88 ${descrBreve}
89 </#if>
90 </div>
91
92 <div class="col-lg-6">
93 <div class="row">
94 <div class="col-lg-12">
95 <#if (immaginePrincipale.getData())?? && immaginePrincipale.getData() != "">
96 <img alt="${immaginePrincipale.getAttribute("alt")}" data-fileentryid="${immaginePrincipale.getAttribute("fileEntryId")}" src="${immaginePrincipale.getData()}" width="100%" height="auto" />
97 <#else>
98 <img alt="ExtraRed" src="/documents/d/guest/art" width="100%" height="auto" />
99 </#if>
100 </div>
101 </div>
102 </div>
103 </div>
104
105 <#-- Loghi, Box Azzurro -->
106 <div class="row pt-lg-5 pt-4">
107 <div class="col-lg-6 pt-0 mb-lg-5 ricerca-loghi" style="background-color: #ffffff; display: flex; align-items: center; justify-content: space-between;">
108 <#if infoProgetto.logoProgetto.getSiblings()?has_content>
109 <#list infoProgetto.logoProgetto.getSiblings() as cur_infoProgetto_logoProgetto>
110 <#if (cur_infoProgetto_logoProgetto.getData())?? && cur_infoProgetto_logoProgetto.getData() != "">
111 <img alt="${cur_infoProgetto_logoProgetto.getAttribute("alt")}" data-fileentryid="${cur_infoProgetto_logoProgetto.getAttribute("fileEntryId")}" src="${cur_infoProgetto_logoProgetto.getData()}" />
112 </#if>
113 </#list>
114 </#if>
115 </div>
116 <div class="col-lg-6 pt-0 mb-lg-5">
117 <#-- Box Azzurro -->
118 <div class="row bg-red-azzurro-cta-dark p-4 p-lg-5">
119 <#list infoProgetto.getSiblings() as cur_esperienza>
120 <#assign bando = "" >
121 <#if (cur_esperienza.bandoProgetto.getData())?? && cur_esperienza.bandoProgetto.getData() != "">
122 <#assign bando = cur_esperienza.bandoProgetto.getData() >
123 <div class="col-3 mb-3 pr-0 color50percent">
124 ${boxRegion}
125 </div>
126 <div class="col-9 mb-3">
127 ${bando}
128 </div>
129 </#if>
130
131 <#assign ambito = "" >
132 <#if (cur_esperienza.ambitoProgetto.getData())?? && cur_esperienza.ambitoProgetto.getData() != "">
133 <#assign ambito = cur_esperienza.ambitoProgetto.getData() >
134 <div class="col-3 mb-3 pr-0 color50percent">
135 ${boxScope}
136 </div>
137 <div class="col-9 mb-3">
138 ${ambito}
139 </div>
140 </#if>
141
142 <#assign durata = "" >
143 <#if (cur_esperienza.durataProgetto.getData())?? && cur_esperienza.durataProgetto.getData() != "">
144 <#assign durata = cur_esperienza.durataProgetto.getData() >
145 <div class="col-3 mb-3 pr-0 color50percent">
146 ${boxDuration}
147 </div>
148 <div class="col-9 mb-3">
149 ${durata}
150 </div>
151 </#if>
152
153 <#assign site = "" >
154 <#if (cur_esperienza.sitoProgetto.getData())?? && cur_esperienza.sitoProgetto.getData() != "">
155 <#assign site = cur_esperienza.sitoProgetto.getData() >
156 <div class="col-3 mb-3 pr-0 color50percent pr-0">
157 ${boxWebSite}
158 </div>
159 <div class="col-9 mb-3">
160 <a href="https://${site}" target="_blank">${site}</a>
161 </div>
162 </#if>
163 </#list>
164 </div>
165 </div>
166 </div>
167
168 <#-- Titolo Secondario, Immagini, Testo, CTA -->
169 <div class="container col-xxl-12 pt-lg-5 pt-4">
170 <div class="row">
171 <div class="col-lg-6">
172 <div class="row">
173 <#assign titleSec = "" >
174 <#if (titoloSec.getData())?? && titoloSec.getData() != "">
175 <div class="col-lg-12">
176 <#assign titleSec = titoloSec.getData() >
177 <h2>${titleSec}</h2>
178 </div>
179 </#if>
180 <div class="pt-lg-2 pt-0 col-lg-12">
181 <div class="row">
182 <#if contMultimediale.fileMultimediale.getData()?has_content>
183 <#list contMultimediale.getSiblings() as cur_contMultimediale>
184 <#assign splitter = cur_contMultimediale.fileMultimediale.getData()?split("/") />
185 <#if (cur_contMultimediale.fileMultimediale.getData())?? && cur_contMultimediale.fileMultimediale.getData() != "" >
186 <#if cur_contMultimediale?is_first>
187 <div class="col-lg-12 col-12 float-end mb-5">
188 <#else>
189 <div class="col-lg-6 col-6 float-end mb-5">
190 </#if>
191 <a class="glightbox" href="${cur_contMultimediale.fileMultimediale.getData()}" data-title="" data-description="${cur_contMultimediale.testoMultimediale.getData()}">
192 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
193 <#assign mimeType = file.getMimeType() />
194 <#if mimeType?contains("video")>
195 <video src="${cur_contMultimediale.fileMultimediale.getData()}" controls width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}" type="video/mp4">
196 </video>
197 <#else>
198 <img src="${cur_contMultimediale.fileMultimediale.getData()}" width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}"/>
199 </#if>
200 </a>
201 </div>
202 </#if>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 <div class="col-lg-6">
210 <div class="row">
211 <div class="col-lg-12">
212 <#assign textSec = "" >
213 <#if (testoSec.getData())?? && testoSec.getData() != "">
214 <#assign textSec = testoSec.getData() >
215 ${textSec}
216 </#if>
217
218 <#assign titleCTA = "" >
219 <#if (ctaProgetto.testoCTAProgetto.getData())?? && ctaProgetto.testoCTAProgetto.getData() != "">
220 <div class="pt-lg-3 pt-0 col-lg-12 mb-5">
221 <div class="float-lg-end float-end me-lg-n5 me-n4 me-ms-n4 col-lg-10 col-10 bg-red-red-cta-dark p-4 p-lg-5">
222 <div class="row">
223 <#assign titleCTA = ctaProgetto.testoCTAProgetto.getData() >
224 <h2 class="fw-normal">${titleCTA}</h2>
225 <#if (ctaProgetto.linkCTAProgetto.getData())?? && ctaProgetto.linkCTAProgetto.getData() != "">
226 <a style="display: block" href="${ctaProgetto.linkCTAProgetto.getData()}" target="_blank">
227 <i class="align-middle material-symbols-outlined">explore</i>
228 <span class="align-middle">${visitSite}</span>
229 </a>
230 </#if>
231 </div>
232 </div>
233 </div>
234 </#if>
235 </div>
236 </div>
237 </div>
238 </div>
239 </div>
240 </div>
241</section>
Maria Giulia Cecchini
modificato 1 Anno fa.
Si è verificato un errore nell'elaborarazione del modello.
The string doesn't match the expected date/time/date-time format. The string to parse was: "mer, 10 nov 2021 08:40:00 +0000". The expected format was: "EEE, dd MMM yyyy HH:mm:ss zzz". The nested reason given follows: Unparseable date: "mer, 10 nov 2021 08:40:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign date = data_pubblicazione?dat... [in template "20097#20123#48031" at line 78, column 17] ----
1<#-- Ricerca Finanziata Template -->
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')/>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)/>
8<#assign article = journalArticleLocalService.getArticle(groupId, journalArticleId)>
9<#assign assetLinkLocalService=serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")>
10<#assign currentArticleAssetEntryId = assetEntry.getEntryId() />
11<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
12
13<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
14
15<#assign customColor = getterUtil.getString(themeDisplay.getThemeSetting("color-setting"))/>
16
17<#assign boxRegion = languageUtil.get(locale, "reg-tender") />
18<#assign boxScope = languageUtil.get(locale, "scope") />
19<#assign boxDuration = languageUtil.get(locale, "duration") />
20<#assign boxWebSite = languageUtil.get(locale, "web-site") />
21
22<#assign visitSite = languageUtil.get(locale, "visit-site") />
23
24<#assign title = .vars['reserved-article-title'].data />
25<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
26
27<#assign descrBreve = "">
28
29<#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
30<#assign img = docXml.valueOf("//dynamic-element[@field-reference='immaginePrincipale']/dynamic-content/text()")?replace("\\","") />
31
32<#-- Controllo visualizza particellare -->
33<#assign particellare = "" />
34<#assign posizione = "" />
35<#if getterUtil.getBoolean(GruppoCampi17717372.Booleano60921145.getData())>
36 <#assign particellare = "particelle" />
37
38<#-- Controllo posizione particellare -->
39 <#if (GruppoCampi17717372.SelezionaDaElenco34191815.getData())?? && GruppoCampi17717372.SelezionaDaElenco34191815.getData()?has_content >
40 <#if GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione88456408">
41 <#assign posizione = "top-left" />
42 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
43 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione26360124">
44 <#assign posizione = "bot-left" />
45 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
46 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione50555342">
47 <#assign posizione = "top-right" />
48 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
49 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione44196487">
50 <#assign posizione = "bot-right" />
51 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
52 </#if>
53 </#if>
54</#if>
55
56<section class="container-fluid">
57 <div class="container col-xxl-12 mb-lg-5 mb-4">
58 <#-- Categoria, Titolo, Descrizione Breve, Immagine -->
59 <div class="row">
60 <div class="col-lg-6">
61 <#-- Categoria -->
62 <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
63 <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/>
64 <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') />
65
66 <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
67 <#assign category = entry.getCategories() />
68
69 <#list category as c>
70 <p class="mb-4 text-muted"> ${c.getTitle(locale)?upper_case} </p>
71 </#list>
72
73 <#-- Titolo -->
74 <#if title?has_content>
75 <h1>${title}</h1>
76 </#if>
77
78 <#assign date = data_pubblicazione?date("EEE, dd MMM yyyy HH:mm:ss zzz")>
79 <#assign dateTimeFormat = languageUtil.get(locale, "dd MMMM yyyy")>
80 <#assign date = date?string(dateTimeFormat)>
81 <p class="mb-4 text-muted">
82 <i class="align-middle me-2 material-symbols-outlined">event</i>
83 ${date}
84 </p>
85
86 <#if (descrizioneBreve.getData())??>
87 <#assign descrBreve = descrizioneBreve.getData()>
88 ${descrBreve}
89 </#if>
90 </div>
91
92 <div class="col-lg-6">
93 <div class="row">
94 <div class="col-lg-12">
95 <#if (immaginePrincipale.getData())?? && immaginePrincipale.getData() != "">
96 <img alt="${immaginePrincipale.getAttribute("alt")}" data-fileentryid="${immaginePrincipale.getAttribute("fileEntryId")}" src="${immaginePrincipale.getData()}" width="100%" height="auto" />
97 <#else>
98 <img alt="ExtraRed" src="/documents/d/guest/art" width="100%" height="auto" />
99 </#if>
100 </div>
101 </div>
102 </div>
103 </div>
104
105 <#-- Loghi, Box Azzurro -->
106 <div class="row pt-lg-5 pt-4">
107 <div class="col-lg-6 pt-0 mb-lg-5 ricerca-loghi" style="background-color: #ffffff; display: flex; align-items: center; justify-content: space-between;">
108 <#if infoProgetto.logoProgetto.getSiblings()?has_content>
109 <#list infoProgetto.logoProgetto.getSiblings() as cur_infoProgetto_logoProgetto>
110 <#if (cur_infoProgetto_logoProgetto.getData())?? && cur_infoProgetto_logoProgetto.getData() != "">
111 <img alt="${cur_infoProgetto_logoProgetto.getAttribute("alt")}" data-fileentryid="${cur_infoProgetto_logoProgetto.getAttribute("fileEntryId")}" src="${cur_infoProgetto_logoProgetto.getData()}" />
112 </#if>
113 </#list>
114 </#if>
115 </div>
116 <div class="col-lg-6 pt-0 mb-lg-5">
117 <#-- Box Azzurro -->
118 <div class="row bg-red-azzurro-cta-dark p-4 p-lg-5">
119 <#list infoProgetto.getSiblings() as cur_esperienza>
120 <#assign bando = "" >
121 <#if (cur_esperienza.bandoProgetto.getData())?? && cur_esperienza.bandoProgetto.getData() != "">
122 <#assign bando = cur_esperienza.bandoProgetto.getData() >
123 <div class="col-3 mb-3 pr-0 color50percent">
124 ${boxRegion}
125 </div>
126 <div class="col-9 mb-3">
127 ${bando}
128 </div>
129 </#if>
130
131 <#assign ambito = "" >
132 <#if (cur_esperienza.ambitoProgetto.getData())?? && cur_esperienza.ambitoProgetto.getData() != "">
133 <#assign ambito = cur_esperienza.ambitoProgetto.getData() >
134 <div class="col-3 mb-3 pr-0 color50percent">
135 ${boxScope}
136 </div>
137 <div class="col-9 mb-3">
138 ${ambito}
139 </div>
140 </#if>
141
142 <#assign durata = "" >
143 <#if (cur_esperienza.durataProgetto.getData())?? && cur_esperienza.durataProgetto.getData() != "">
144 <#assign durata = cur_esperienza.durataProgetto.getData() >
145 <div class="col-3 mb-3 pr-0 color50percent">
146 ${boxDuration}
147 </div>
148 <div class="col-9 mb-3">
149 ${durata}
150 </div>
151 </#if>
152
153 <#assign site = "" >
154 <#if (cur_esperienza.sitoProgetto.getData())?? && cur_esperienza.sitoProgetto.getData() != "">
155 <#assign site = cur_esperienza.sitoProgetto.getData() >
156 <div class="col-3 mb-3 pr-0 color50percent pr-0">
157 ${boxWebSite}
158 </div>
159 <div class="col-9 mb-3">
160 <a href="https://${site}" target="_blank">${site}</a>
161 </div>
162 </#if>
163 </#list>
164 </div>
165 </div>
166 </div>
167
168 <#-- Titolo Secondario, Immagini, Testo, CTA -->
169 <div class="container col-xxl-12 pt-lg-5 pt-4">
170 <div class="row">
171 <div class="col-lg-6">
172 <div class="row">
173 <#assign titleSec = "" >
174 <#if (titoloSec.getData())?? && titoloSec.getData() != "">
175 <div class="col-lg-12">
176 <#assign titleSec = titoloSec.getData() >
177 <h2>${titleSec}</h2>
178 </div>
179 </#if>
180 <div class="pt-lg-2 pt-0 col-lg-12">
181 <div class="row">
182 <#if contMultimediale.fileMultimediale.getData()?has_content>
183 <#list contMultimediale.getSiblings() as cur_contMultimediale>
184 <#assign splitter = cur_contMultimediale.fileMultimediale.getData()?split("/") />
185 <#if (cur_contMultimediale.fileMultimediale.getData())?? && cur_contMultimediale.fileMultimediale.getData() != "" >
186 <#if cur_contMultimediale?is_first>
187 <div class="col-lg-12 col-12 float-end mb-5">
188 <#else>
189 <div class="col-lg-6 col-6 float-end mb-5">
190 </#if>
191 <a class="glightbox" href="${cur_contMultimediale.fileMultimediale.getData()}" data-title="" data-description="${cur_contMultimediale.testoMultimediale.getData()}">
192 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
193 <#assign mimeType = file.getMimeType() />
194 <#if mimeType?contains("video")>
195 <video src="${cur_contMultimediale.fileMultimediale.getData()}" controls width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}" type="video/mp4">
196 </video>
197 <#else>
198 <img src="${cur_contMultimediale.fileMultimediale.getData()}" width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}"/>
199 </#if>
200 </a>
201 </div>
202 </#if>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 <div class="col-lg-6">
210 <div class="row">
211 <div class="col-lg-12">
212 <#assign textSec = "" >
213 <#if (testoSec.getData())?? && testoSec.getData() != "">
214 <#assign textSec = testoSec.getData() >
215 ${textSec}
216 </#if>
217
218 <#assign titleCTA = "" >
219 <#if (ctaProgetto.testoCTAProgetto.getData())?? && ctaProgetto.testoCTAProgetto.getData() != "">
220 <div class="pt-lg-3 pt-0 col-lg-12 mb-5">
221 <div class="float-lg-end float-end me-lg-n5 me-n4 me-ms-n4 col-lg-10 col-10 bg-red-red-cta-dark p-4 p-lg-5">
222 <div class="row">
223 <#assign titleCTA = ctaProgetto.testoCTAProgetto.getData() >
224 <h2 class="fw-normal">${titleCTA}</h2>
225 <#if (ctaProgetto.linkCTAProgetto.getData())?? && ctaProgetto.linkCTAProgetto.getData() != "">
226 <a style="display: block" href="${ctaProgetto.linkCTAProgetto.getData()}" target="_blank">
227 <i class="align-middle material-symbols-outlined">explore</i>
228 <span class="align-middle">${visitSite}</span>
229 </a>
230 </#if>
231 </div>
232 </div>
233 </div>
234 </#if>
235 </div>
236 </div>
237 </div>
238 </div>
239 </div>
240 </div>
241</section>
Francesca Tronci
modificato 1 Anno fa.
Si è verificato un errore nell'elaborarazione del modello.
The string doesn't match the expected date/time/date-time format. The string to parse was: "ven, 04 mag 2018 09:43:00 +0000". The expected format was: "EEE, dd MMM yyyy HH:mm:ss zzz". The nested reason given follows: Unparseable date: "ven, 04 mag 2018 09:43:00 +0000" ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign date = data_pubblicazione?dat... [in template "20097#20123#48031" at line 78, column 17] ----
1<#-- Ricerca Finanziata Template -->
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<#assign journalArticleLocalService = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService')/>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data/>
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId)/>
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey)/>
8<#assign article = journalArticleLocalService.getArticle(groupId, journalArticleId)>
9<#assign assetLinkLocalService=serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")>
10<#assign currentArticleAssetEntryId = assetEntry.getEntryId() />
11<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
12
13<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
14
15<#assign customColor = getterUtil.getString(themeDisplay.getThemeSetting("color-setting"))/>
16
17<#assign boxRegion = languageUtil.get(locale, "reg-tender") />
18<#assign boxScope = languageUtil.get(locale, "scope") />
19<#assign boxDuration = languageUtil.get(locale, "duration") />
20<#assign boxWebSite = languageUtil.get(locale, "web-site") />
21
22<#assign visitSite = languageUtil.get(locale, "visit-site") />
23
24<#assign title = .vars['reserved-article-title'].data />
25<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
26
27<#assign descrBreve = "">
28
29<#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) />
30<#assign img = docXml.valueOf("//dynamic-element[@field-reference='immaginePrincipale']/dynamic-content/text()")?replace("\\","") />
31
32<#-- Controllo visualizza particellare -->
33<#assign particellare = "" />
34<#assign posizione = "" />
35<#if getterUtil.getBoolean(GruppoCampi17717372.Booleano60921145.getData())>
36 <#assign particellare = "particelle" />
37
38<#-- Controllo posizione particellare -->
39 <#if (GruppoCampi17717372.SelezionaDaElenco34191815.getData())?? && GruppoCampi17717372.SelezionaDaElenco34191815.getData()?has_content >
40 <#if GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione88456408">
41 <#assign posizione = "top-left" />
42 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
43 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione26360124">
44 <#assign posizione = "bot-left" />
45 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; left: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
46 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione50555342">
47 <#assign posizione = "top-right" />
48 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="top: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
49 <#elseif GruppoCampi17717372.SelezionaDaElenco34191815.getData() == "opzione44196487">
50 <#assign posizione = "bot-right" />
51 <lottie-player src="/o/redweb-theme/images/illustrazioni/part_${customColor}_${posizione}.json" background="transparent" speed="1" style="bottom: 0px; right: 0px; position: absolute; z-index: -1; width: 100%; height: auto;" loop autoplay></lottie-player>
52 </#if>
53 </#if>
54</#if>
55
56<section class="container-fluid">
57 <div class="container col-xxl-12 mb-lg-5 mb-4">
58 <#-- Categoria, Titolo, Descrizione Breve, Immagine -->
59 <div class="row">
60 <div class="col-lg-6">
61 <#-- Categoria -->
62 <#assign journalArticle = serviceLocator.findService('com.liferay.journal.service.JournalArticleLocalService') />
63 <#assign article = journalArticle.getArticle(groupId, .vars['reserved-article-id'].data)/>
64 <#assign assetEntry = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService') />
65
66 <#assign entry = assetEntry.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
67 <#assign category = entry.getCategories() />
68
69 <#list category as c>
70 <p class="mb-4 text-muted"> ${c.getTitle(locale)?upper_case} </p>
71 </#list>
72
73 <#-- Titolo -->
74 <#if title?has_content>
75 <h1>${title}</h1>
76 </#if>
77
78 <#assign date = data_pubblicazione?date("EEE, dd MMM yyyy HH:mm:ss zzz")>
79 <#assign dateTimeFormat = languageUtil.get(locale, "dd MMMM yyyy")>
80 <#assign date = date?string(dateTimeFormat)>
81 <p class="mb-4 text-muted">
82 <i class="align-middle me-2 material-symbols-outlined">event</i>
83 ${date}
84 </p>
85
86 <#if (descrizioneBreve.getData())??>
87 <#assign descrBreve = descrizioneBreve.getData()>
88 ${descrBreve}
89 </#if>
90 </div>
91
92 <div class="col-lg-6">
93 <div class="row">
94 <div class="col-lg-12">
95 <#if (immaginePrincipale.getData())?? && immaginePrincipale.getData() != "">
96 <img alt="${immaginePrincipale.getAttribute("alt")}" data-fileentryid="${immaginePrincipale.getAttribute("fileEntryId")}" src="${immaginePrincipale.getData()}" width="100%" height="auto" />
97 <#else>
98 <img alt="ExtraRed" src="/documents/d/guest/art" width="100%" height="auto" />
99 </#if>
100 </div>
101 </div>
102 </div>
103 </div>
104
105 <#-- Loghi, Box Azzurro -->
106 <div class="row pt-lg-5 pt-4">
107 <div class="col-lg-6 pt-0 mb-lg-5 ricerca-loghi" style="background-color: #ffffff; display: flex; align-items: center; justify-content: space-between;">
108 <#if infoProgetto.logoProgetto.getSiblings()?has_content>
109 <#list infoProgetto.logoProgetto.getSiblings() as cur_infoProgetto_logoProgetto>
110 <#if (cur_infoProgetto_logoProgetto.getData())?? && cur_infoProgetto_logoProgetto.getData() != "">
111 <img alt="${cur_infoProgetto_logoProgetto.getAttribute("alt")}" data-fileentryid="${cur_infoProgetto_logoProgetto.getAttribute("fileEntryId")}" src="${cur_infoProgetto_logoProgetto.getData()}" />
112 </#if>
113 </#list>
114 </#if>
115 </div>
116 <div class="col-lg-6 pt-0 mb-lg-5">
117 <#-- Box Azzurro -->
118 <div class="row bg-red-azzurro-cta-dark p-4 p-lg-5">
119 <#list infoProgetto.getSiblings() as cur_esperienza>
120 <#assign bando = "" >
121 <#if (cur_esperienza.bandoProgetto.getData())?? && cur_esperienza.bandoProgetto.getData() != "">
122 <#assign bando = cur_esperienza.bandoProgetto.getData() >
123 <div class="col-3 mb-3 pr-0 color50percent">
124 ${boxRegion}
125 </div>
126 <div class="col-9 mb-3">
127 ${bando}
128 </div>
129 </#if>
130
131 <#assign ambito = "" >
132 <#if (cur_esperienza.ambitoProgetto.getData())?? && cur_esperienza.ambitoProgetto.getData() != "">
133 <#assign ambito = cur_esperienza.ambitoProgetto.getData() >
134 <div class="col-3 mb-3 pr-0 color50percent">
135 ${boxScope}
136 </div>
137 <div class="col-9 mb-3">
138 ${ambito}
139 </div>
140 </#if>
141
142 <#assign durata = "" >
143 <#if (cur_esperienza.durataProgetto.getData())?? && cur_esperienza.durataProgetto.getData() != "">
144 <#assign durata = cur_esperienza.durataProgetto.getData() >
145 <div class="col-3 mb-3 pr-0 color50percent">
146 ${boxDuration}
147 </div>
148 <div class="col-9 mb-3">
149 ${durata}
150 </div>
151 </#if>
152
153 <#assign site = "" >
154 <#if (cur_esperienza.sitoProgetto.getData())?? && cur_esperienza.sitoProgetto.getData() != "">
155 <#assign site = cur_esperienza.sitoProgetto.getData() >
156 <div class="col-3 mb-3 pr-0 color50percent pr-0">
157 ${boxWebSite}
158 </div>
159 <div class="col-9 mb-3">
160 <a href="https://${site}" target="_blank">${site}</a>
161 </div>
162 </#if>
163 </#list>
164 </div>
165 </div>
166 </div>
167
168 <#-- Titolo Secondario, Immagini, Testo, CTA -->
169 <div class="container col-xxl-12 pt-lg-5 pt-4">
170 <div class="row">
171 <div class="col-lg-6">
172 <div class="row">
173 <#assign titleSec = "" >
174 <#if (titoloSec.getData())?? && titoloSec.getData() != "">
175 <div class="col-lg-12">
176 <#assign titleSec = titoloSec.getData() >
177 <h2>${titleSec}</h2>
178 </div>
179 </#if>
180 <div class="pt-lg-2 pt-0 col-lg-12">
181 <div class="row">
182 <#if contMultimediale.fileMultimediale.getData()?has_content>
183 <#list contMultimediale.getSiblings() as cur_contMultimediale>
184 <#assign splitter = cur_contMultimediale.fileMultimediale.getData()?split("/") />
185 <#if (cur_contMultimediale.fileMultimediale.getData())?? && cur_contMultimediale.fileMultimediale.getData() != "" >
186 <#if cur_contMultimediale?is_first>
187 <div class="col-lg-12 col-12 float-end mb-5">
188 <#else>
189 <div class="col-lg-6 col-6 float-end mb-5">
190 </#if>
191 <a class="glightbox" href="${cur_contMultimediale.fileMultimediale.getData()}" data-title="" data-description="${cur_contMultimediale.testoMultimediale.getData()}">
192 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
193 <#assign mimeType = file.getMimeType() />
194 <#if mimeType?contains("video")>
195 <video src="${cur_contMultimediale.fileMultimediale.getData()}" controls width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}" type="video/mp4">
196 </video>
197 <#else>
198 <img src="${cur_contMultimediale.fileMultimediale.getData()}" width="100%" height="auto" alt="${cur_contMultimediale.testoMultimediale.getData()}"/>
199 </#if>
200 </a>
201 </div>
202 </#if>
203 </#list>
204 </#if>
205 </div>
206 </div>
207 </div>
208 </div>
209 <div class="col-lg-6">
210 <div class="row">
211 <div class="col-lg-12">
212 <#assign textSec = "" >
213 <#if (testoSec.getData())?? && testoSec.getData() != "">
214 <#assign textSec = testoSec.getData() >
215 ${textSec}
216 </#if>
217
218 <#assign titleCTA = "" >
219 <#if (ctaProgetto.testoCTAProgetto.getData())?? && ctaProgetto.testoCTAProgetto.getData() != "">
220 <div class="pt-lg-3 pt-0 col-lg-12 mb-5">
221 <div class="float-lg-end float-end me-lg-n5 me-n4 me-ms-n4 col-lg-10 col-10 bg-red-red-cta-dark p-4 p-lg-5">
222 <div class="row">
223 <#assign titleCTA = ctaProgetto.testoCTAProgetto.getData() >
224 <h2 class="fw-normal">${titleCTA}</h2>
225 <#if (ctaProgetto.linkCTAProgetto.getData())?? && ctaProgetto.linkCTAProgetto.getData() != "">
226 <a style="display: block" href="${ctaProgetto.linkCTAProgetto.getData()}" target="_blank">
227 <i class="align-middle material-symbols-outlined">explore</i>
228 <span class="align-middle">${visitSite}</span>
229 </a>
230 </#if>
231 </div>
232 </div>
233 </div>
234 </#if>
235 </div>
236 </div>
237 </div>
238 </div>
239 </div>
240 </div>
241</section>