An error occurred while processing the template.
When calling function "createStyleIcon", required parameter "name" (parameter #1) was specified, but had null/missing value.

----
Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the "!" operator, like paramValue!defaultValue.
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #function createStyleIcon(name)  [in template "12187455#12187494#3138569" in function "createStyleIcon" at line 334, column 1]
	- Reached through: ${createStyleIcon(typeOfWork)}  [in template "12187455#12187494#3138569" at line 50, column 79]
----
1<style> 
2@media(max-width: 990px){ 
3  .desktop-buttons{ 
4    display:none!important; 
5
6   
7
8 
9.desktop-buttons{ 
10	padding: 2%; 
11
12 
13</style> 
14 
15<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>																   
16<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
17<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
18<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
19 
20<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
21<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
22<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
23<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
24<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
25 
26<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
27 
28<div class="background-color--gray pb-5"> 
29    <section class="detail__banner"> 
30        <div class="detail__banner--image"> 
31            <#if sep_imagen_cabecera.imagen_cabecera.getData()?? && sep_imagen_cabecera.imagen_cabecera.getData() != ""> 
32                <img alt="${sep_imagen_cabecera.imagen_cabecera.getAttribute("alt")}" data-fileentryid="${sep_imagen_cabecera.imagen_cabecera.getAttribute("fileEntryId")}" src="${sep_imagen_cabecera.imagen_cabecera.getData()}" /> 
33            </#if> 
34        </div> 
35 
36        <#assign categories = currentArticleAssetEntry.getCategories() > 
37 
38        <#if categories?? && (categories?size > 0) > 
39            <#list categories as categoryElement> 
40                <#if categoryElement.getPath(locale)?contains("Country") || categoryElement.getPath(locale)?contains("Pais") > 
41                    <#assign country =  categoryElement.getTitle(locale) /> 
42                <#elseif categoryElement.getPath(locale)?contains("work") || categoryElement.getPath(locale)?contains("construccion") > 
43                    <#assign typeOfWork =  categoryElement.getName() /> 
44                </#if> 
45            </#list> 
46        </#if> 
47 
48        <div class="container"> 
49            <div class="detail__banner--category"> 
50                <div class="detail__banner--category-icon"><span class="fcc-i_${createStyleIcon(typeOfWork)}"></span></div>             
51                <#--  breadcrum  --> 
52                <div class="detail__banner--category-breadcrumb">             
53                    <@breadcrum/>      
54                </div>        
55            </div> 
56             
57            <p class="detail__banner--title">${.vars['reserved-article-title'].data}</p> 
58 
59            <p class="detail__banner--country">${country}</p> 
60        </div> 
61 
62        <div class="detail__banner--featured"> 
63            <div class="container"> 
64                <div class="row"> 
65                    <#if DatosDestacados?? && DatosDestacados.getSiblings()?has_content > 
66                        <#list DatosDestacados.getSiblings() as datoDestacado> 
67                            <div class="col-12 col-sm-3 item"> 
68                                <p class="detail__banner--featured-data">${datoDestacado.TextoSuperior.getData()}</p> 
69                                <p class="detail__banner--featured-unit">${datoDestacado.TextoInferior.getData()}</p> 
70                            </div> 
71                        </#list> 
72 
73                    </#if> 
74                </div> 
75            </div> 
76        </div>     
77 
78    </section> 
79 
80 
81    <#--  <p class="detail__slider--text d-lg-none">${.vars['reserved-article-description'].data} </p>  --> 
82    <section class="detail__slider container"> 
83        <div class="detail__slider--text d-lg-none"> 
84            ${.vars['reserved-article-description'].data} 
85        </div> 
86        <#if sep_galeria_medios?? && sep_galeria_medios.getSiblings()?has_content >     
87            <div class="slick-container"> 
88                <div class="slick__pagination d-none d-lg-block"> 
89                    ${.vars['reserved-article-description'].data} 
90                    <!-- Add Pagination --> 
91                    <p class="slick-fraction"></p> 
92                    <!-- Add Progress bar --> 
93                    <div class="slick-progress"> 
94                        <div class="progress"> 
95                            <div class="progress-bar" role="progressbar" aria-valuenow="" aria-valuemin="0" aria-valuemax="100"></div> 
96                        </div> 
97                    </div> 
98                </div> 
99                <div class="slick-wrapper"> 
100 
101                    <ul class="slick-active-slide"> 
102                        <#list sep_galeria_medios.getSiblings() as galeria> 
103                            <#if galeria.galeria_medios?? && galeria.galeria_medios.data?has_content > 
104                                <li class="slick-slide"> 
105                                    <#if galeria.galeria_medios.data?contains('.tif/') || galeria.galeria_medios.data?contains('.TIF/') > 
106                                        <a title="<@liferay.language_format arguments="${galeria.alt_galeria_medios.data}" key="show-x" />" href="${galeria.galeria_medios.data&imageThumbnail=1}" target="_blank"> 
107                                            <img src="${galeria.galeria_medios.data&imageThumbnail=1}" alt="${galeria.alt_galeria_medios.data}"/> 
108                                        </a> 
109                                    <#else>                     
110                                        <#assign imagen = galeria.galeria_medios.data /> 
111 
112                                        <#if (imagen?has_content)> 
113                                            <#assign imagenMap = imagen?eval /> 
114                                            <#assign imagenGroupId = imagenMap["groupId"]?number /> 
115                                            <#assign imagenUuid = imagenMap["uuid"] />                             
116                                        </#if> 
117                                         
118                                        <#assign urlImage = "" /> 
119                                        <#if (imagen?has_content) && (imagenGroupId != 0)> 
120                                            <#assign dlElement = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(imagenUuid, imagenGroupId) />	 
121                                            <#assign urlImage = portalUtil.getPortalURL(renderRequest) + '/documents/' + dlElement.getRepositoryId() + '/' + dlElement.getFolderId() + '/' + htmlUtil.escapeURL(dlElement.getTitle()) +'/' + dlElement.getUuid() + '?' + dlElement.getVersion() />									 
122                                        </#if>                       
123 
124                                        <img src="${urlImage}" alt="${galeria.alt_galeria_medios.data}"/> 
125                                         
126                                    </#if> 
127                                </li> 
128                            </#if> 
129                        </#list> 
130                    </ul> 
131                     
132                    <ul class="slick-nav"> 
133                        <#list sep_galeria_medios.getSiblings() as galeria> 
134                            <#if galeria.galeria_medios?? && galeria.galeria_medios.data?has_content > 
135                                <li class="slick-slide"> 
136                                    <#if galeria.galeria_medios.data?contains('.tif/') || galeria.galeria_medios.data?contains('.TIF/') > 
137                                        <a title="<@liferay.language_format arguments="${galeria.alt_galeria_medios.data}" key="show-x" />" href="${galeria.galeria_medios.data&imageThumbnail=1}" target="_blank"> 
138                                            <img src="${galeria.galeria_medios.data&imageThumbnail=1}" alt="${galeria.alt_galeria_medios.data}"/> 
139                                        </a> 
140                                    <#else>                     
141                                        <#assign imagen = galeria.galeria_medios.data /> 
142 
143                                        <#if (imagen?has_content)> 
144                                            <#assign imagenMap = imagen?eval /> 
145                                            <#assign imagenGroupId = imagenMap["groupId"]?number /> 
146                                            <#assign imagenUuid = imagenMap["uuid"] />                             
147                                        </#if> 
148                                         
149                                        <#assign urlImage = "" /> 
150                                        <#if (imagen?has_content) && (imagenGroupId != 0)> 
151                                            <#assign dlElement = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(imagenUuid, imagenGroupId) />	 
152                                            <#assign urlImage = portalUtil.getPortalURL(renderRequest) + '/documents/' + dlElement.getRepositoryId() + '/' + dlElement.getFolderId() + '/' + htmlUtil.escapeURL(dlElement.getTitle()) +'/' + dlElement.getUuid() + '?' + dlElement.getVersion() />									 
153                                        </#if>                       
154 
155                                        <img src="${urlImage}" alt="${galeria.alt_galeria_medios.data}"/> 
156                                         
157                                    </#if> 
158                                </li> 
159                            </#if> 
160                        </#list> 
161                    </ul> 
162                </div> 
163                <div class="slick__pagination-mobile d-lg-none"> 
164                    <p class="slick-fraction"></p> 
165                </div> 
166 
167            </div> 
168        </#if> 
169                <div class="desktop-buttons d-flex justify-content-between"> 
170                        <button class="slick-prev slick-arrow" aria-label="Previous" type="button" style="">Previous</button> 
171                        <button class="slick-next slick-arrow" aria-label="Next" type="button" style="">Next</button> 
172        </div> 
173    </section> 
174 
175 
176    <section class="detail__paragraph container">    
177        <div class="row"> 
178            <div class="col-sm-8 col-sm-offset-2"> 
179                ${descripcion.getData()} 
180            </div> 
181        </div> 
182    </section> 
183 
184    <#--  FICHAS DESTACADAS  --> 
185    <#if validator.isNotNull(FichasDestacadas.getSiblings()[0].TituloDestacado.getData()) > 
186        <#if FichasDestacadas?? && FichasDestacadas.getSiblings()?has_content > 
187            <section class="detail__featuredTag container"> 
188                <div class="row"> 
189                    <#list FichasDestacadas.getSiblings() as fichaDestacada> 
190                        <div class="col-4"> 
191                            <div class="detail__featuredTag-item"> 
192 
193                                <#if fichaDestacada.Icono.getData()?? && fichaDestacada.Icono.getData() != ""> 
194                                    <img alt="${fichaDestacada.Icono.getAttribute("alt")}" data-fileentryid="${fichaDestacada.Icono.getAttribute("fileEntryId")}" src="${fichaDestacada.Icono.getData()}" /> 
195                                </#if> 
196 
197                                <#if fichaDestacada.TituloDestacado?? && fichaDestacada.TituloDestacado.getData()?? && fichaDestacada.TituloDestacado.getData() != ""> 
198                                    <p class="detail__featuredTag-item--title">${fichaDestacada.TituloDestacado.getData()} </p> 
199                                </#if> 
200 
201                                <#if fichaDestacada.DescripcionDestacado?? && fichaDestacada.DescripcionDestacado.getData()?? && fichaDestacada.DescripcionDestacado.getData() != ""> 
202                                    <p>${fichaDestacada.DescripcionDestacado.getData()} </p> 
203                                </#if> 
204                            </div> 
205                        </div> 
206                    </#list> 
207                </div> 
208            </section> 
209        </#if> 
210    </#if> 
211    <#if validator.isNotNull(HTMLLibre1.getData()) > 
212        <section class="detail__paragraph container">    
213            <div class="row"> 
214                <div class="col-sm-8 col-sm-offset-2"> 
215                    <#--  HTML LIBRE  --> 
216                    ${HTMLLibre1.getData()} 
217                    <#--  CITA  --> 
218                    <div class="detail__paragraph--quote">  
219                        <#if existCitas(Cita) > 
220                            <span class="detail__paragraph--quote-icon fcc-opinion_ocio"></span> 
221                            <#list Cita.getSiblings() as cita> 
222                             
223                                <#if cita.Autor?? && cita.Autor.getData()?? && cita.Autor.getData() != ""> 
224                                    <p class="author">${cita.Autor.getData()} </p> 
225                                </#if> 
226 
227                                <#if cita.Texto?? && cita.Texto.getData()?? && cita.Texto.getData() != ""> 
228                                    <p>${cita.Texto.getData()} </p> 
229                                </#if> 
230                            </#list> 
231 
232                        </#if> 
233                    </div> 
234                    <#--  HTML LIBRE  --> 
235                    ${HTMLLibre2.getData()} 
236 
237                </div> 
238            </div> 
239        </section> 
240    </#if> 
241</div> 
242 
243 
244 
245<#if (currentArticleRelatedLinks?size > 0)>       
246    <section class="related__projects container-fluid"> 
247        <h2>${languageUtil.get(locale, "construccion-tpl.related.projects")}</h2>         
248        <div class="related__projects--wrapper"> 
249            <#list currentArticleRelatedLinks as related_entry> 
250                <div class="related__projects-slide"> 
251                    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
252                    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
253                    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
254                    <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
255                     
256                    <#assign document = saxReaderUtil.read(relatedArticle.getContentByLocale(locale.toString())) /> 
257                    <#assign rootElement = document.getRootElement() /> 
258                    <#assign xPathSelector = saxReaderUtil.createXPath("//dynamic-element[@name='imagen']/dynamic-content") /> 
259                    <#assign imagenRelatedArticulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
260                     
261                    <#assign imagenRelatedArticuloFileEntryId = 0 /> 
262                    <#if (imagenRelatedArticulo?has_content)> 
263                        <#assign imagenRelatedArticuloMap = imagenRelatedArticulo?eval /> 
264                        <#assign imagenRelatedArticuloFileEntryId = imagenRelatedArticuloMap["fileEntryId"]?number /> 
265                    </#if> 
266 
267                    <#assign relatedJournalArticleResourcePrimKey = relatedArticle.getResourcePrimKey() /> 
268                    <#assign relatedJournalArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", relatedJournalArticleResourcePrimKey) /> 
269                    <#assign relatedCategoryList = relatedJournalArticleAssetEntry.getCategories() > 
270 
271                     
272 
273                    <#assign categories = currentArticleAssetEntry.getCategories() > 
274 
275                    <#if relatedCategoryList?? && (relatedCategoryList?size > 0) > 
276                        <#list relatedCategoryList as categoryElement> 
277                            <#if categoryElement.getPath(locale)?contains("Country") || categoryElement.getPath(locale)?contains("Pais") > 
278                                <#assign relatedCountry =  categoryElement.getTitle(locale) />         
279                             <#elseif categoryElement.getPath(locale)?contains("work") || categoryElement.getPath(locale)?contains("construccion") > 
280                                <#assign relatedTypeOfWork =  categoryElement.getName() /> 
281                            </#if> 
282                        </#list> 
283                    </#if> 
284 
285                    <#--  Enlace proyecto relacionado  --> 
286                    <a href="${themeDisplay.getURLPortal()}${themeDisplay.getURLCurrent()[0..themeDisplay.getURLCurrent()?index_of("/-/")+2]}${relatedArticle.getUrlTitle()}"></a> 
287                     
288                    <div class="related__projects-slide--img"> 
289                        <span class="related__projects-slide--icon fcc-i_${createStyleIcon(relatedTypeOfWork)}"></span> 
290                        <#if (imagenRelatedArticuloFileEntryId != 0)> 
291                            <#assign dlElement = dlFileEntryLocalService.getDLFileEntry(imagenRelatedArticuloFileEntryId) /> 
292                            <img src="${themeDisplay.getPortalURL()}/documents/${dlElement.getRepositoryId()}/${dlElement.getFolderId()}/${dlElement.getTitle()}/${dlElement.getUuid()}?${dlElement.getVersion()}" alt="${imagenRelatedArticuloMap["alt"]}"> 
293                        <#else> 
294                            <#assign  imagen_listado_defecto = layout.getGroup().getExpandoBridge().getAttribute("ciudad-fcc-construccion-listado") /> 
295                            <img src="${imagen_listado_defecto}" alt="${relatedArticle.getTitle()}"> 
296                        </#if>    
297                    </div> 
298                    <#--  Titulo y pais proyecto relacionado  --> 
299                    <div class="related__projects-slide--text"> 
300                        <p class="related__projects-slide--title">${relatedArticle.getTitle()} </p> 
301                        <p>${relatedCountry}</p> 
302                    </div>  
303                </div> 
304            </#list> 
305        </div> 
306    </section> 
307</#if> 
308 
309<#macro breadcrum> 
310 
311    <#assign layout_actual = layout /> 
312    <#assign breadcrumbList = [] /> 
313 
314    <#list 0..10 as i> 
315		<#assign parentId = layout_actual.getParentPlid() />		 
316		<#if parentId == 0 > 
317			<#break> 
318		<#else> 
319			<#assign layout_actual = layoutLocalService.getLayout(parentId) /> 
320			<#assign breadcrumbList = breadcrumbList + [layout_actual] />			 
321		</#if>  
322	</#list> 
323 
324    <#assign size = breadcrumbList?size - 1/> 
325			 
326	<#list breadcrumbList?reverse as breadcrumb>	         
327        <p>${breadcrumb.getName(locale)}</p>		         
328        <#--<#assign completeUrl = portalUtil.getLayoutFullURL(breadcrumb, themeDisplay) /> 
329        <li><a href="${completeUrl}">${breadcrumb.getName(locale)}</a></li>-->			 
330	</#list> 
331 
332</#macro> 
333 
334<#function createStyleIcon name> 
335    <#return name?replace("á", "a")?replace("é","e")?replace("í","i")?replace("ó","o")?replace("ú","u")?replace(" ","")?lower_case > 
336</#function> 
337 
338<#function existCitas Cita> 
339    <#if Cita?? && Cita.getSiblings()?has_content > 
340        <#list Cita.getSiblings() as cita>         
341            <#if cita.Autor?? && cita.Autor.getData()?? && cita.Autor.getData() != ""> 
342                <#return true> 
343            </#if> 
344 
345            <#if cita.Texto?? && cita.Texto.getData()?? && cita.Texto.getData() != ""> 
346                <#return true> 
347            </#if> 
348        </#list> 
349    </#if> 
350    <#return false> 
351</#function> 
352        <script> 
353$('.slick-prev').on('click', function(){   
354var slideIndex = $('.slick-active').attr('data-slick-index'); 
355var newind = parseInt(slideIndex) - 1; 
356$('.slick-active-slide').slick("slickGoTo", parseInt(newind)); 
357}); 
358$('.slick-next').on('click', function(){   
359var slideIndex = $('.slick-active').attr('data-slick-index'); 
360var newind = parseInt(slideIndex) + 1; 
361$('.slick-active-slide').slick("slickGoTo", parseInt(newind)); 
362}); 
363 
364</script>