
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 84] ---- 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 82] ----
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://www.linkedin.com/shareArticle?mini=true&url=${friendlyURLs[themeDisplay.getLanguageId()]}/&title=${minititle}" aria-label="true"><span class="icon-linkedin" aria-hidden="true"></span></a>
87 <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>
88</div>
89</div>
90
91</#if>
92
93<#if Cuerpo.getData()?? && Cuerpo.getData() != "">
94<div class="body-new">
95 ${Cuerpo.getData()}
96</div>
97</#if>
98<#assign download = ''>
99<#list Descargables.getSiblings() as cur_Descargables>
100 <#if cur_Descargables?? && cur_Descargables.Archivo_descargable?? && cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != "">
101 <#assign download = 'yes'>
102 </#if>
103</#list>
104<#if download == 'yes'>
105<div class="box-download border-bottom mb-3" >
106 <#list Descargables.getSiblings() as cur_Descargables>
107 <#if cur_Descargables.Archivo_descargable.getData()?? && cur_Descargables.Archivo_descargable.getData() != "">
108
109 <a class="download-icon link border-0 w-auto mr-4" href="${cur_Descargables.Archivo_descargable.getData()}">
110 ${cur_Descargables.Nombre_descargable.getData()}
111 </a>
112
113 </#if>
114</#list>
115</div>
116
117</#if>
118
119<#assign tags = false>
120<#list asset.getTags() as tag>
121 <#assign tags = true>
122</#list>
123<#if (tags = true)>
124 <div class="cat-tags d-inline-block mt-3 w-100">
125 <#list asset.getTags() as tag>
126 <span>${tag.name}</span>
127 </#list>
128 </div>
129</#if>
130<div class="cat-share-bottom">
131 <span>
132 ${Compártelo}
133 </span>
134 <div class="share">
135 <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>
136 <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>
137 </div>
138 </div>
139 <#list Fuentes.getSiblings() as cur_Fuentes>
140 <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() == "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")>
141 <span class="border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}">
142 <strong>Fuente:</strong> ${cur_Fuentes.Nombre_fuentes.getData()}
143 </span>
144 </#if>
145 <#if (cur_Fuentes.Enlace_fuentes.getData()?? && cur_Fuentes.Enlace_fuentes.getData() != "") && (cur_Fuentes.Nombre_fuentes.getData()?? && cur_Fuentes.Nombre_fuentes.getData() != "")>
146 <span>
147 <strong> Fuente:</strong> <a style="font-weight: 100;" class="external-link link border-0 w-auto mr-4" href="${cur_Fuentes.Enlace_fuentes.getData()}">
148 ${cur_Fuentes.Nombre_fuentes.getData()}
149 </a>
150 </span>
151 </#if>
152</#list>
153<#assign cats = false>
154<#list asset.getCategories() as category>
155 <#assign cats = true>
156</#list>
157<#if ( cats = true)>
158 <div class="cat-links">
159
160 <div class="categories">
161 <span>
162 Seguir leyendo sobre:
163 </span>
164 <#list asset.getCategories() as category>
165 <a href="/web/guest/noticias/-/categories/${category.categoryId}">
166 ${category.name}
167 </a>
168 </#list>
169 </div>
170</div>
171</#if>
172
173</div>
174
175
176<script>
177
178incrementViewCounter('${asset.getClassPK()}');
179
180function incrementViewCounter(classPK) {
181 Liferay.Service(
182 '/assetentry/increment-view-counter',
183 {
184 companyId: Liferay.ThemeDisplay.getCompanyId(),
185 className: 'com.liferay.journal.model.JournalArticle',
186 classPK: classPK
187 },
188 function(obj) {
189 //no need to do anything
190 }
191 );
192}
193</script>
194<style>
195.view-news .header-entrance .share {
196 width: 100%;
197 display: flex;
198 flex-direction: row;
199}
200.view-news .header-entrance .share a{
201 margin-right:11px;
202}
203.view-news .header-entrance {
204 margin: 20px 0;
205}
206.view-news .header-entrance .content {
207 width: 100%;
208 padding-left: 0;
209 margin-top: 10px;
210}
211strong u{
212 font-weight: 500;
213}
214.component-html img {
215 max-width: 100%;
216 width: auto;
217 height: auto;
218}
219.content ul{
220 padding-left:25px;
221 list-style:initial;
222}
223.content ul li{
224
225 list-style:initial;
226}
227.body-new ul, ol {
228 list-style: auto;
229 padding-left: 20px;
230}
231.body-new ul li {
232 list-style: initial;
233 margin: 10px 0;
234}
235.body-new li{
236 margin: 10px 0;
237}
238</style>
Et podria interessar
Necessites ajuda?
També pots contactar amb nosaltres per e-mail consulta@barcelonaenergia.cat o trucar-nos al 900 906 807
També pots contactar amb nosaltres per e-mail
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!
PREGUNTES FREQÜENTS