An error occurred while processing the template.
The following has evaluated to null or missing: ==> item.not_recurso_documento [in template "10311#10344#NOTICIES" at line 248, column 42] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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: #elseif item.not_recurso_documento.ge... [in template "10311#10344#NOTICIES" at line 248, column 33] ----
1<#assign journalArticleLocalService= serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign assetCategoryServiceUtil= serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")>
3<#assign assetTagServiceUtil= serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagService")>
4
5
6
7<#assign currentArticle= journalArticleLocalService.getArticle( getterUtil.getLong( groupId), .vars["reserved-article-id"].data)>
8<#assign category= assetCategoryServiceUtil.getCategories("com.liferay.journal.model.JournalArticle", getterUtil.getLong( currentArticle.getResourcePrimKey()))>
9<#assign tag= assetTagServiceUtil.getTags("com.liferay.journal.model.JournalArticle", getterUtil.getLong( currentArticle.getResourcePrimKey()))>
10
11<meta name="og:title" content="${htmlUtil.escape(not_titol.getData())}" />
12<meta name="og:description" content="${htmlUtil.escape(htmlUtil.stripHtml(stringUtil.trim(not_lead.getData())))}" />
13<meta name="twitter:title" content="${htmlUtil.escape(not_titol.getData())}" />
14<meta name="twitter:description" content="${htmlUtil.escape(htmlUtil.stripHtml(stringUtil.trim(not_lead.getData())))}" />
15<meta name="twitter:card" content="summary_large_image" />
16
17
18<section>
19 <article>
20 <#if category?has_content>
21 <span class="tit_img">
22 <#assign primeraCat=true>
23 <#list category as categoria>
24 <#if categoria.vocabularyId== getterUtil.getLong("32255")>
25 <#if !primeraCat>
26 |
27 </#if>
28 ${categoria.name}
29 <#assign primeraCat=false>
30 </#if>
31 </#list>
32 </span>
33 </#if>
34 <iframe src="https://www.facebook.com/plugins/like.php?locale=${locale}&href=${themeDisplay.getURLPortal()}${themeDisplay.getURLCurrent()}&layout=button_count&show_faces=false&width=100&action=like&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:21px;float:right;"></iframe>
35
36 <span class="tit_img"><strong>${not_avantitol.getData()}</strong></span>
37 <h2 class="section_cab">${not_titol.getData()}</h2>
38
39
40
41
42 <#if not_img_interior.getSiblings()?has_content>
43 <#assign i=0>
44
45 <div id="carousel-${.vars["reserved-article-id"].data}" class="carousel slide carousel-article" data-ride="carousel" data-interval="4000">
46
47 <#assign i=0>
48 <div class="carousel-inner">
49 <#list not_img_interior.getSiblings() as not_img_interior>
50 <#assign imgInteriorURL= "">
51 <#if not_img_interior?? && not_img_interior.getData()?has_content>
52 <#assign imgInteriorURL= not_img_interior.getData()>
53 </#if>
54 <#if not_img_interior?? && not_img_interior.urlExterna?? && (!imgInteriorURL?has_content || imgInteriorURL?length ==0)>
55 <#assign imgInteriorURL= not_img_interior.urlExterna.getData()>
56 <#if imgInteriorURL?has_content && imgInteriorURL?length gt 0>
57 <meta property="og:image" content="${imgInteriorURL}" />
58 <meta name="twitter:image" content="${imgInteriorURL}" />
59 </#if>
60 <#else>
61 <#if imgInteriorURL?has_content && imgInteriorURL?length gt 0>
62 <meta property="og:image" content="https://parcs.diba.cat${imgInteriorURL}" />
63 <meta name="twitter:image" content="https://parcs.diba.cat${imgInteriorURL}" />
64 </#if>
65 </#if>
66 <#assign altAuxImg= "">
67 <#if imgInteriorURL?has_content && imgInteriorURL?length gt 0>
68 <#assign urlImgEntry= imgInteriorURL>
69 <#if not_img_interior.not_img_alt.getData()?has_content>
70 <#assign altAuxImg= not_img_interior.not_img_alt.getData()>
71 </#if>
72 <div class="carousel-item <#if i==0> active <#assign i=1> </#if>">
73
74
75 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI------------------------------------------------------------------------->
76 <#if urlImgEntry?has_content>
77 <#----------------------------METAINFO_IMG_GETINFO INI---------------------------->
78 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
79 <#assign uuIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"uuid",false)>
80 <#if uuIdImagen?has_content>
81 <#assign groupIdImagen= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].getParameter( urlImgEntry,"groupId",false)>
82 <#if groupIdImagen?has_content>
83 <#assign current= DLFileEntryUtil.fetchDLFileEntryByUuidAndGroupId(uuIdImagen, getterUtil.getLong( groupIdImagen))!"">
84 </#if>
85 </#if>
86 <#----------------------------METAINFO_IMG_GETINFO FIN---------------------------->
87 <#if current?? && current?has_content>
88 <#assign structureId="IMATGES">
89 <#assign templateId="IMATGES">
90 <#----------------------------METAINFO_EXIST_CONTENT INI---------------------------->
91 <#assign journalArticleLocalService= serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
92 <#assign companyId= current.getCompanyId()>
93 <#assign grupoId= current.getGroupId()>
94 <#assign title= current.getDescription()>
95 <#assign andOperator=true>
96 <#assign type="general">
97 <#assign isEmpty=true>
98 <#assign articles="">
99 <#assign currentArticle="">
100 <#assign folders=[]>
101 <#assign articles= journalArticleLocalService.search( getterUtil.getLong( companyId), getterUtil.getLong( grupoId), folders,0,null,null, title,null, type, structureId, templateId,null,null,0,null, andOperator,-1,-1, null)>
102 <#list articles as article>
103 <#if stringUtil.compareToIgnoreCase(article.getTitle(), title)>
104 <#if isEmpty>
105 <#assign isEmpty=false>
106 <#assign currentArticle= article>
107 <#else>
108 <#if currentArticle.getVersion()< article.getVersion()>
109 <#assign currentArticle= article>
110 </#if>
111 </#if>
112 </#if>
113 </#list>
114 <#----------------------------METAINFO_EXIST_CONTENT FIN-------------------------- -->
115 <#if !currentArticle?has_content>
116 <img src="${urlImgEntry}" alt="${altAuxImg}" title="" />
117 <#if altAuxImg?has_content>
118 <p>${altAuxImg}</p>
119 </#if>
120 <#else>
121 <#----------------------------IMATGES FIN-------------------------- -->
122 <#assign document= saxReaderUtil.read( currentArticle.getContent())>
123 <#assign img_autor= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_autor esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")>
124 <#assign img_titol= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_titol esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")>
125 <#assign img_alt= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_alt esc.s]/dynamic-content[@language-id= esc.s locale esc.s]")>
126 <#assign img_imatge= document.selectSingleNode("/root/dynamic-element[@name= esc.simg_imatge esc.s]/dynamic-content")>
127 <img src="${img_imatge.getText()}" class="image_border" alt="${img_alt.getText()}" title="${img_alt.getText()}" >
128 <p>${img_titol.getText()}</p>
129 <p>${img_autor.getText()}</p>
130 <#----------------------------IMATGES FIN-------------------------- -->
131 </#if>
132 <#else>
133 <img src="${urlImgEntry}" alt="${altAuxImg}" title="" />
134 <#if altAuxImg?has_content>
135 <p>${altAuxImg}</p>
136 </#if>
137 </#if>
138 </#if>
139 <#-------------------------------------------------------------------------UNIFICACION PLANTILLAS METAINFO IMATGES INI------------------------------------------------------------------------->
140 </div>
141 </#if>
142 </#list>
143 </div>
144
145
146 </#if>
147
148
149
150
151 <#if not_data?has_content && not_data.getData()?has_content && not_data.getData()?length ==8>
152 <div class="fecha_noti">
153 ${not_data.getData()?substring(6,8)}/${not_data.getData()?substring(4,6)}/${not_data.getData()?substring(0,4)}
154 </div>
155 </#if>
156 <div class="lead_noti"><strong>${not_lead.getData()}</strong></div>
157 <div class="cos_noti">${not_cos.getData()}</div>
158<div class="icos_noti">
159
160 <div class="ico_redes" style="display:flex;justify-content: end">
161 <span>compartir</span>
162 <#-- AddToAny Button BEGIN -->
163 <div class="a2a_kit a2a_default_style data-a2a-title="${htmlUtil.escape(.vars["reserved-article-title"].data)}">
164 <a class="a2a_button_google_gmail"></a>
165 <a class="a2a_button_facebook"></a>
166 <a class="a2a_button_pinterest"></a>
167 <a class="a2a_dd" href="https://www.addtoany.com/share"></a>
168 </div>
169 </div>
170 <script>
171 var a2a_config = a2a_config || {};
172 a2a_config.locale = "es";
173 </script>
174 <script async src="https://static.addtoany.com/menu/page.js"></script>
175 <script data-senna-track="temporary">
176 Liferay.on("beforeNavigate", function(event) { location.href=event.path; });
177 </script>
178 <#-- AddToAny Button END -->
179 </div>
180 </p>
181 </div>
182 <div class="bloque_info_izq">
183 <p>Font de la informació: ${not_fons.getData()}</p>
184 <#if category?has_content>
185 <p>Categoria:
186 <#list category as wcat>
187 <#if wcat.vocabularyId!=401841 && wcat.vocabularyId!=32685>
188 ${wcat.name},
189 </#if>
190 </#list>
191 </p>
192 </#if>
193 </div>
194<#if tag?? && tag?has_content>
195 <div class="bloque_info_dch">
196 <p>Tags:
197 <#list tag as wtag>
198 ${wtag.name},
199 </#list>
200 </p>
201 </div>
202</#if>
203
204 <div style="clear:both"></div>
205
206 <#assign isRecursos=false>
207 <#if not_recurso?? && not_recurso.getSiblings()?has_content>
208 <#list not_recurso.getSiblings() as item>
209 <#assign img_recurso="">
210 <#if item.not_recurso_url?? && item.not_recurso_url.getData()?has_content>
211
212 <#if item.getData()?has_content>
213 <#assign img_recurso= item.getData()>
214 <#elseif item.urlExterna4?? && item.urlExterna4.getData()?has_content && item.urlExterna4.getData()?length gt 0>
215 <#assign img_recurso= item.urlExterna4.getData()>
216 </#if>
217 <#if !isRecursos>
218 <div class="recursos">
219 <h3>${languageUtil.get(locale, "resources")}</h3>
220 <#assign isRecursos=true>
221 </#if>
222 <p>
223 <#if img_recurso!="">
224 <img src="${img_recurso}" alt="${item.not_recurso_alt.getData()}">
225 <#else>
226 <i class="icon-file-text icon-large"></i>
227 </#if>
228 <a href="${item.not_recurso_url.getData()}" title="${item.not_recurso_alt.getData()}" target="${item.not_recurso_tipo.getData()}">${item.not_recurso_alt.getData()}</a>
229 </p>
230 <#elseif item.not_recurso_email.getData()?has_content>
231 <#if item.getData()?has_content>
232 <#assign img_recurso= item.getData()>
233 <#elseif item.urlExterna4?? && item.urlExterna4.getData()?has_content && item.urlExterna4.getData()?length gt 0>
234 <#assign img_recurso= item.urlExterna4.getData()>
235 </#if>
236 <#if !isRecursos>
237 <div class="recursos">
238 <h3>${languageUtil.get(locale, "resources")}</h3>
239 <#assign isRecursos=true>
240 </#if>
241 <p>
242 <#if img_recurso!="">
243 <img src="${img_recurso}" alt="${item.not_recurso_alt.getData()}">
244 <#else>
245 <i class="icon-file-text icon-large"></i>
246 </#if>
247 <a href="${item.not_recurso_email.getData()}" title="${item.not_recurso_alt.getData()}" target="${item.not_recurso_tipo.getData()}">${item.not_recurso_alt.getData()}</a>
248 <#elseif item.not_recurso_documento.getData()?has_content || (item.not_recurso_documento.urlExterna3?? && item.not_recurso_documento.urlExterna3.getData()?has_content)>
249 <#if item.getData()?has_content>
250 <#assign img_recurso= item.getData()>
251 <#elseif item.urlExterna4?? && item.urlExterna4.getData()?has_content && item.urlExterna4.getData()?length gt 0>
252 <#assign img_recurso= item.urlExterna4.getData()>
253 </#if>
254 <#if !isRecursos>
255 <div class="recursos">
256 <h3>${languageUtil.get(locale, "resources")}</h3>
257 <#assign isRecursos=true>
258 </#if>
259 <#assign urlDocumento= item.not_recurso_documento.getData()>
260 <#if !item.not_recurso_documento.getData()?has_content || item.not_recurso_documento.getData()?length==0>
261 <#assign urlDocumento= item.not_recurso_documento.urlExterna3.getData()>
262 </#if>
263 <p>
264 <#if img_recurso!="">
265 <img src="${img_recurso}" alt="${item.not_recurso_alt.getData()}">
266 <#else>
267 <i class="icon-file-text icon-large"></i>
268 </#if>
269 <a href="${urlDocumento}" title="${item.not_recurso_alt.getData()}" target="${item.not_recurso_tipo.getData()}">${item.not_recurso_alt.getData()}</a>
270 </p>
271 </#if>
272 </#list>
273 </#if>
274 <#if isRecursos>
275 </div>
276 </#if>
277 </article>
278</section>
Cercador de notícies
Your privacy is our priority
To protect your privacy, before continuing we want to make sure that you know that, both we and our collaborators, use some cookies on the website to facilitate its use:
- Own and third parties for statistical purposes, with which no user information is collected nor access IP addresses are recorded.
- Our own and third parties to guarantee basic functioning, such as the user session, and personalization aspects, such as the language of our pages.
We save the acceptance of cookies for 30 days to improve the browsing experience. Remember that you can delete cookies from your browser. - From third parties to show you information from our social networks, such as Facebook, X, YouTube, etc. By accessing these websites you can decide whether or not you accept their privacy and cookie policies.