Estudio “Cuidado, mal tiempo. Influencia de la meteorología adversa en los accidentes de tráfico (2014-2023)”
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> themeDisplay.getPortletDisplay().getId()?split("INSTANCE_")[1] [in template "20357736420605#1710429#543193" at line 4, column 19]
----
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: #assign anchor = themeDisplay.getPort... [in template "20357736420605#1710429#543193" at line 4, column 1]
---- 1<#assign language_id = user.getLanguageId() /> 2<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 3 4<#assign anchor = themeDisplay.getPortletDisplay().getId()?split("INSTANCE_")[1]> 5<#assign current_url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 6<#assign subUrl = current_url?index_of('/-/asset_publisher/') /> 7 8<div class="detalle-noticia"> 9 10 <div class="anchor" id="${anchor}"><!-- --></div> 11 12 <#if 0 < subUrl > 13 <#assign backUrl = current_url?substring(0,subUrl) + "#" + anchor /> 14 <#else> 15 <#assign backUrl = current_url + "#" + anchor/> 16 </#if> 17 18 <span class="header-back-to"> 19 <a class="icon-circle-arrow-left previous-level" href="${backUrl}" title="Volver"> 20 <span class="helper-hidden-accessible"> 21 Volver 22 </span> 23 </a> 24 </span> 25 26 <#if imagen_listado.data != '' || entradilla.data != ''> 27 <div class="wysiwyg justify"> 28 <#if imagen_listado.data != ""> 29 <#assign uuid = ""> 30 <#assign fileEntry = ""> 31 <#assign summaryImageSRC = ""> 32 <#list imagen_listado.data?split(",") as item> 33 <#assign previous = ""> 34 <#list item?split(":") as key> 35 <#if key?index == 1 && previous?contains("uuid") > 36 <#assign uuid = key?replace("\"","")?replace("}","")> 37 <#if uuid != ""> 38 <#attempt> 39 <#assign fileEntry = dlService.getFileEntryByUuidAndGroupId(uuid, groupId)> 40 <#if fileEntry != ""> 41 <#assign summaryImageSRC ="/documents/${groupId}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()}" > 42 </#if> 43 <#recover> 44 </#attempt> 45 </#if> 46 </#if> 47 <#assign previous = key> 48 </#list> 49 </#list> 50 <#list imagen_listado.getChildren() as datoImage> 51 <#if datoImage.getName() == 'alt_imagen_listado' > 52 <#assign alt_listado = datoImage.data /> 53 </#if> 54 <#if alt_listado == '' > 55 <#assign alt_listado = titulo.data /> 56 </#if> 57 </#list> 58 <img src="${summaryImageSRC}" alt="${alt_listado}" /> 59 </#if> 60 </div> 61 </#if> 62 63 <div class="docList"> 64 <#if titulo.data != '' > 65 <h2> 66 <span class="tit justify">${titulo.data}</span> 67 </h2> 68 </#if> 69 70 <#if entradilla.data != '' > 71 <div class="subtitulo"> 72 ${entradilla.data} 73 </div> 74 </#if> 75 76 <#if contenido.data != '' > 77 <div class="wysiwyg"> 78 ${contenido.data} 79 </div> 80 </#if> 81 <#if documentos.getData() != "" > 82 <#list documentos.getSiblings() as documento> 83 <div class="noticia-documento"> 84 <#assign counter = 0 > 85 <#list "${documento.getData()}"?split("/") as x> 86 <#if counter == 4> 87 <#assign gid = x?number > 88 </#if> 89 <#if counter == 7> 90 <#assign fileUid = x > 91 </#if> 92 <#assign counter = counter+1 > 93 </#list> 94 95 <#assign counter = 0 > 96 <#list "${fileUid}"?split("?") as x> 97 <#if counter == 0> 98 <#assign fileUid = x > 99 </#if> 100 <#assign counter = counter+1 > 101 </#list> 102 103 <#assign fileEntry = dlService.getFileEntryByUuidAndGroupId(fileUid, gid) /> 104 <#assign fileSize = fileEntry.size/1024 /> 105 106 <#if 0 < documento.getData()?index_of("?") > 107 <#assign downloadUrl = documento.getData() + "&download=true" /> 108 <#else> 109 <#assign downloadUrl = documento.getData() + "?download=true" /> 110 </#if> 111 112 <div class="archivo-relacionado"> 113 <a href="${downloadUrl}" download >${documento.texto_documento.getData()}</a> 114 </div> 115 </div> 116 </#list> 117 </#if> 118 </div> 119</div>