T'ajudem
T'ajudem
Entrevista a… Lourdes Blesa
S'ha produït un error mentre es processava la plantilla.
The following has evaluated to null or missing: ==> friendlyURLs[themeDisplay.getLanguageId()] [in template "20097#20123#55826" at line 86, column 74] ---- Tip: It's the final [] step 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: ${friendlyURLs[themeDisplay.getLangua... [in template "20097#20123#55826" at line 86, column 72] ----
1<#if (ImagenPrincipal1.getData())?? && ImagenPrincipal1.getData() != "">
2 <meta property="og:image" content="${themeDisplay.getPortalURL()}${ImagenPrincipal1.getData()}">
3</#if>
4
5<#if ( (themeDisplay.getLanguageId() == 'ca_ES'))>
6 <#assign Compártelo = 'Comparteix-lo' />
7</#if>
8<#if ( (themeDisplay.getLanguageId() == 'es_ES'))>
9 <#assign Compártelo = 'Compártelo' />
10</#if>
11<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
12<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
13<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
14<#assign article = JournalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data)>
15<#assign asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) >
16<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
17<#assign assetLinks = assetLinkLocalService.getDirectLinks(asset.getEntryId()) />
18<#assign themeDisplay = serviceContext.getThemeDisplay() />
19<#assign mytitle = .vars['reserved-article-title'].data>
20<#assign minititle=(mytitle)>
21<section class="rate-sec ">
22 <div class="row">
23 <div class="col-lg-12">
24 <div class="text-box container">
25 <h1 data-lfr-editable-id="text1" data-lfr-editable-type="text">
26 BLOG
27 </h1>
28 <div class="breadcrumb-theme">
29 <a href="/blog" data-lfr-editable-id="link1" data-lfr-editable-type="link"
30 >BLOG</a
31 >
32 <span data-lfr-editable-id="text2" data-lfr-editable-type="text"
33 >${Titulo.getData()}</span
34 >
35 </div>
36
37 </div>
38 </div>
39 </div>
40
41</section>
42
43
44<div class="view-news">
45<div class="header-new">
46 <div class="title " effect="animate__fadeInLeft" delay=".6">
47 <div class="d-flex w-100 justify-content-between align-item-baseline">
48 <p class="cat-date">
49 <#if Fecha?? && Fecha.getData()?? >
50 <#assign Fecha_Data = getterUtil.getString(Fecha.getData())>
51 <#if validator.isNotNull(Fecha_Data)>
52 <#assign Fecha_DateObj = dateUtil.parseDate("yyyy-MM-dd", Fecha_Data, locale)>
53 <strong>${dateUtil.getDate(Fecha_DateObj, "dd MMM yyyy", locale)}</strong>
54 </#if>
55 </#if>
56 </p>
57 <p class="categories">
58 <#list asset.getCategories() as category>
59 <#if (category.vocabularyId = 67255 )>
60 <span>
61 ${category.name}
62 </span>
63 </#if>
64 </#list>
65 </p>
66 </div>
67 <#if Titulo.getData()?? && Titulo.getData() != "">
68 <h1>${Titulo.getData()}</h1>
69 </#if>
70
71 </div>
72 <#if ImagenPrincipal1.getData()?? && ImagenPrincipal1.getData() != "">
73 <div class="image " effect="animate__fadeInRight" delay="1.3" title="${ImagenPrincipal1.getAttribute("alt")}" style="background-image:url(${ImagenPrincipal1.getData()})">
74 <#else>
75 <div class="image " effect="animate__fadeInRight" delay="1.3" title="imagen noticia" style="background-color:gray">
76 </#if>
77 </div>
78</div>
79<#if Entradilla.getData()?? && Entradilla.getData() != "">
80<div class="align-items-stretch d-flex flex-wrap header-entrance justify-content-between " effect="animate__fadeInUp" delay="1.5">
81 <div class="content">
82 <div>${Entradilla.getData()}</div>
83
84 </div>
85 <div class="share">
86 <!-- <a target="_blank" href="https://twitter.com/intent/tweet?text=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true"><span class="icon-twitter" aria-hidden="true"></span></a>-->
87 <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=${friendlyURLs[themeDisplay.getLanguageId()]}/&title=${minititle}" aria-label="true"><span class="icon-linkedin" aria-hidden="true"></span></a>
88 <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${friendlyURLs[themeDisplay.getLanguageId()]}&t=${Titulo.getData()}" aria-label="true" ><span class="icon-facebook" aria-hidden="true"></span></a>
89</div>
90</div>
91
92</#if>
93
94<#if Cuerpo.getData()?? && Cuerpo.getData() != "">
95<div class="body-new">
96 ${Cuerpo.getData()}
97</div>
98</#if>
99<#assign download = ''>
100<#list Descargables.getSiblings() as cur_Descargables>
101 <#if cur_Descargables?? && cur_Descargables.Archivo_descargable?? && cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != "">
102 <#assign download = 'yes'>
103 </#if>
104</#list>
105<#if download == 'yes'>
106<div class="box-download border-bottom mb-3" >
107 <#list Descargables.getSiblings() as cur_Descargables>
108 <#if cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != "">
109
110 <a class="download-icon link border-0 w-auto mr-4" href="${cur_Descargables.Archivo_descargable.getData()}">
111 ${cur_Descargables.Nombre_descargable.getData()}
112 </a>
113
114 </#if>
115</#list>
116</div>
117
118</#if>
119
120<#assign tags = false>
121<#list asset.getTags() as tag>
122 <#assign tags = true>
123</#list>
124<#if (tags = true)>
125 <div class="cat-tags d-inline-block mt-3 w-100">
126 <#list asset.getTags() as tag>
127 <span>${tag.name}</span>
128 </#list>
129 </div>
130</#if>
131<div class="cat-share-bottom">
132 <span>
133 ${Compártelo}
134 </span>
135 <div class="share">
136 <a target="_blank" href="https://twitter.com/intent/tweet?text=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true" ><span class="icon-twitter" aria-hidden="true"></span></a>
137 <a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=${friendlyURLs[themeDisplay.getLanguageId()]}/&title=${minititle}" aria-label="true"><span class="icon-linkedin" aria-hidden="true"></span></a>
138 <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${friendlyURLs[themeDisplay.getLanguageId()]}" aria-label="true"><span class="icon-facebook" aria-hidden="true"></span></a>
139 </div>
140 </div>
141 <#list Fuentes.getSiblings() as cur_Fuentes>
142 <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() == "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")>
143 <span class="border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}">
144 <strong>Fuente:</strong> ${cur_Fuentes.Nombre_fuentes.getData()}
145 </span>
146 </#if>
147 <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() != "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")>
148 <span>
149 <strong> Fuente:</strong> <a style="font-weight: 100;" class="external-link link border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}">
150 ${cur_Fuentes.Nombre_fuentes.getData()}
151 </a>
152 </span>
153 </#if>
154</#list>
155<#assign cats = false>
156<#list asset.getCategories() as category>
157 <#assign cats = true>
158</#list>
159<#if ( cats = true)>
160 <div class="cat-links">
161
162 <div class="categories">
163 <span>
164 Seguir leyendo sobre:
165 </span>
166 <#list asset.getCategories() as category>
167 <a href="/web/guest/noticias/-/categories/${category.categoryId}">
168 ${category.name}
169 </a>
170 </#list>
171 </div>
172</div>
173</#if>
174
175</div>
176
177
178<script>
179
180incrementViewCounter('${asset.getClassPK()}');
181
182function incrementViewCounter(classPK) {
183 Liferay.Service(
184 '/assetentry/increment-view-counter',
185 {
186 companyId: Liferay.ThemeDisplay.getCompanyId(),
187 className: 'com.liferay.journal.model.JournalArticle',
188 classPK: classPK
189 },
190 function(obj) {
191 //no need to do anything
192 }
193 );
194}
195</script>
196<style>
197.view-news .header-entrance .share {
198 width: 100%;
199 display: flex;
200 flex-direction: row;
201}
202.view-news .header-entrance .share a{
203 margin-right:11px;
204}
205.view-news .header-entrance {
206 margin: 20px 0;
207}
208.view-news .header-entrance .content {
209 width: 100%;
210 padding-left: 0;
211 margin-top: 10px;
212}
213strong u{
214 font-weight: 500;
215}
216.component-html img {
217 max-width: 100%;
218 width: auto;
219 height: auto;
220}
221.content ul{
222 padding-left:25px;
223 list-style:initial;
224}
225.content ul li{
226
227 list-style:initial;
228}
229.body-new ul, ol {
230 list-style: auto;
231 padding-left: 20px;
232}
233.body-new ul li {
234 list-style: initial;
235 margin: 10px 0;
236}
237.body-new li{
238 margin: 10px 0;
239}
240</style>
Et podria interessar
¿Necesitas ayuda?
També pots contactar amb nosaltres per e-mail consulta@barcelonaenergia.cat o trucar-nos al 900 906 807
Resolem els teus dubtes
Aquí trobaràs resposta a les preguntes que ens feu amb més freqüència. És la forma més ràpida de resoldre els teus dubtes!