- CHDuero
- Servicio al ciudadano
- Servicios en línea
Se ha producido un error al procesar la plantilla.
Range start index 0 is out of bounds, because the sliced sequence has only 0 element(s). (Note that indices are 0-based).
The blamed expression:
==> 0..3 [in template "20099#20135#1223129" at line 402, column 80]
----
FTL stack trace ("~" means nesting-related):
- Failed at: #list enlaces[0..3] as enlace [in template "20099#20135#1223129" at line 402, column 65]
---- 1<style> 2 #detalle-submenu-chd .portlet-topper{ 3 display: none; 4 } 5 .asset-content{ 6 margin: 0!important; 7 } 8 9 #detalle-submenu-chd{ 10 height: auto; 11 } 12 13 #detalle-submenu-chd *{ 14 box-sizing: border-box; 15 } 16 17 #detalle-submenu-chd .detalle-submenu-wrapper{ 18 position: relative; 19 display: block; 20 margin-bottom: 30px; 21 } 22 23 #detalle-submenu-chd .header-detalle{ 24 position: relative; 25 background: white; 26 } 27 28 #detalle-submenu-chd .header-title{ 29 position: relative; 30 border-left: 10px solid #1c7696; 31 padding: 10px 20px; 32 font-size: 2.4rem; 33 font-weight: bold; 34 color: black; 35 margin: 0; 36 word-break: break-word; 37 margin-bottom: 30px; 38 user-select: none; 39 background: white; 40 line-height: 1.2; 41 } 42 43 #detalle-submenu-chd .rrss-stats-wrapper{ 44 display: flex; 45 border-top: 2px solid #1c7696; 46 padding: 10px 5px 0; 47 margin-bottom: 50px; 48 } 49 50 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar{ 51 display: grid; 52 grid-template-columns: auto 30px 30px; 53 grid-gap: 10px; 54 align-items: center; 55 } 56 57 #detalle-submenu-chd .rrss-stats-wrapper span{ 58 color: #1b576d; 59 } 60 61 #detalle-submenu-chd .btn-rrss { 62 height: 30px; 63 width: 30px; 64 border-radius: 50%; 65 display: flex; 66 justify-content: center; 67 align-items: center; 68 font-size: 1.1rem; 69 text-decoration: none; 70 color: white; 71 background: #1c7696; 72 } 73 74 #detalle-submenu-chd .contenido-detalle{ 75 position: relative; 76 display: block; 77 overflow: hidden; 78 width: 100%; 79 background: white; 80 color: black; 81 } 82 83 #detalle-submenu-chd .contenido-detalle h1, 84 #detalle-submenu-chd .contenido-detalle h2, 85 #detalle-submenu-chd .contenido-detalle h3, 86 #detalle-submenu-chd .contenido-detalle h4, 87 #detalle-submenu-chd .contenido-detalle h5, 88 #detalle-submenu-chd .contenido-detalle h6{ 89 font-size: 1.2rem; 90 margin: 35px 0 10px 0; 91 } 92 93 #detalle-submenu-chd .contenido-detalle b, 94 #detalle-submenu-chd .contenido-detalle strong{ 95 font-weight: 700; 96 } 97 98 #detalle-submenu-chd .contenido-detalle a{ 99 color: #1c7696; 100 } 101 102 #detalle-submenu-chd .img-principal{ 103 width: 35%; 104 float: right; 105 padding: 0 0 5px 15px; 106 } 107 108 #detalle-submenu-chd .img-principal img{ 109 width: 100%; 110 height: 100%; 111 object-fit: cover; 112 } 113 114 #detalle-submenu-chd .destacados{ 115 width: 100%; 116 height: auto; 117 } 118 119 #detalle-submenu-chd .destacados{ 120 position: relative; 121 margin-bottom: 30px; 122 } 123 124 #detalle-submenu-chd .destacados-header{ 125 display: flex; 126 background: white; 127 box-sizing: border-box; 128 border-left: 5px solid #1c7696; 129 } 130 131 #detalle-submenu-chd .destacados-header span { 132 font-size: 1.2em; 133 font-weight: 600; 134 color: #272727; 135 padding: 5px 15px; 136 user-select: none; 137 margin: 0; 138 } 139 140 #detalle-submenu-chd .destacados ul { 141 width: 100%; 142 margin: 0; 143 padding: 0; 144 overflow: hidden; 145 } 146 147 #detalle-submenu-chd .destacados .enlace-destacado { 148 display: flex; 149 align-items: baseline; 150 width: 100%; 151 text-decoration: none; 152 padding: 10px; 153 color: white; 154 word-break: break-word; 155 } 156 157 #detalle-submenu-chd .destacados ul > li{ 158 display: block; 159 } 160 161 #detalle-submenu-chd .destacados .enlace-destacado:hover, 162 #detalle-submenu-chd .destacados .enlace-destacado:focus { 163 opacity: 0.9; 164 } 165 166 #detalle-submenu-chd .enlace-destacado span{ 167 display: block; 168 width: calc(100% - 35px); 169 font-size: 0.95rem; 170 font-weight: 700; 171 } 172 173 #detalle-submenu-chd .enlace-destacado .destacado-icon{ 174 display: flex; 175 justify-content: center; 176 padding-right: 10px; 177 width: 35px; 178 } 179 180 #detalle-submenu-chd .color-1{ 181 background: #bbe5f3; 182 } 183 184 #detalle-submenu-chd .color-2{ 185 background: #1b576d; 186 } 187 188 #detalle-submenu-chd .color-3{ 189 background: #a7f5df; 190 } 191 192 #detalle-submenu-chd .color-1 span, 193 #detalle-submenu-chd .color-3 span{ 194 color: #1b576d; 195 } 196 197 #detalle-submenu-chd .color-4{ 198 background: #1c7696; 199 } 200 201 .print-action{ 202 display: none; 203 } 204 205 #detalle-submenu-chd .sticky-wrapper{ 206 position: sticky; 207 position: -webkit-sticky; 208 display: flex; 209 flex-direction: column; 210 top: 70px; 211 } 212 213 #detalle-submenu-chd .submenu-nav-wrapper .portlet{ 214 margin: 0; 215 } 216 217 #detalle-submenu-chd .item-visible{ 218 display: block!important; 219 } 220 221 #detalle-submenu-chd .detalleFicha{ 222 padding-left: 10px; 223 border-left: 3px solid #1c7696; 224 font-weight: 700; 225 margin-bottom: 10px; 226 margin-top: 40px; 227 } 228 229 #detalle-submenu-chd .detalleFicha:first-of-type{ 230 margin-top: 0; 231 } 232 233 /*-------------------------- RESPONSIVE --------------------------*/ 234 235 @media screen and (max-width: 767px) and (orientation: portrait){ 236 237 #detalle-submenu-chd .header-title{ 238 border-left-width: 8px; 239 padding: 0.5rem 1rem; 240 font-size: 2rem; 241 } 242 243 #detalle-submenu-chd .img-principal{ 244 float: none; 245 width: 100%; 246 height: 240px; 247 padding: 0; 248 margin-bottom: 20px; 249 } 250 251 #detalle-submenu-chd .img-principal img{ 252 object-position: center; 253 } 254 255 #detalle-submenu-chd table{ 256 display: block; 257 } 258 259 #detalle-submenu-chd .rrss-stats-wrapper{ 260 flex-direction: column; 261 padding: 10px 0 0; 262 margin-bottom: 20px; 263 } 264 265 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar{ 266 grid-template-columns: 80px 30px 30px; 267 margin-bottom: 15px; 268 } 269 } 270 271 @media screen and (max-width: 767px) and (orientation: landscape){ 272 273 #detalle-submenu-chd .header-title{ 274 font-size: 2.2rem; 275 border-left-width: 8px; 276 padding: 0.5rem 1rem; 277 } 278 279 #detalle-submenu-chd table{ 280 display: block; 281 } 282 } 283 284 /* Intercambiamos la posición del submenu de navegación por el de los ficheros asociados */ 285 @media screen and (max-width: 1199px){ 286 #detalle-submenu-chd .sticky-wrapper{ 287 position: static; 288 } 289 290 #detalle-submenu-chd .sticky-wrapper .submenu-nav-wrapper{ 291 order: 1; 292 } 293 294 #detalle-submenu-chd .sticky-wrapper .destacados{ 295 order: 2; 296 margin-bottom: 0; 297 } 298 } 299 300 @media print{ 301 #detalle-submenu-chd .social-media-bar{ 302 display: none; 303 } 304 305 #banner, nav#breadcrumbs, #footer, .taglib-header{ 306 display: none!important; 307 margin: 0px!important; 308 } 309 310 #detalle-submenu-chd #contenido-detalle a[href]:after{ 311 content: none!important; 312 } 313 314 #detalle-submenu-chd #contenido-detalle .img-principal{ 315 width: 150px!important; 316 } 317 } 318 319 /* Adaptación a Internet Explorer */ 320 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar{ 321 display: -ms-grid; 322 -ms-grid-columns: auto 10px 30px 10px 30px; 323 } 324 325 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar span{ 326 -ms-grid-column: 1; 327 } 328 329 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar a:nth-of-type(1){ 330 -ms-grid-column: 3; 331 } 332 333 #detalle-submenu-chd .rrss-stats-wrapper .social-media-bar a:nth-of-type(2){ 334 -ms-grid-column: 5; 335 } 336</style> 337 338<#-- Obtenemos la URL correspondiente --> 339<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() /> 340<#assign themeDisplay = serviceContext.getThemeDisplay() /> 341<#assign currentURL = themeDisplay.getURLPortal()+themeDisplay.getURLCurrent() /> 342<#assign layout = themeDisplay.getLayout() /> 343<#assign pageId = layout.getPlid() /> 344 345<div class="row"> 346 <div id="detalle-submenu-chd" class="container-fluid-1280"> 347 <div class="row"> 348 <div class="col-xl-12 col-md-12"> 349 <div class="row"> 350 <div class="col-xl-9 col-lg-12"> 351 <section> 352 <article class="detalle-submenu-wrapper"> 353 <header class="header-detalle"> 354 <h1 class="header-title">${titulo.getData()}</h1> 355 </header> 356 357 <section> 358 <div class="contenido-detalle"> 359 ${contenido.getData()} 360 361 <#-- Colocamos el portlet de Integración Clave --> 362 <@liferay_portlet["runtime"] 363 defaultPreferences="${freeMarkerPortletPreferences}" 364 portletName="integracionClave_WAR_esaltiachdportletsintegracionClave" 365 /> 366 </div> 367 <div class="rrss-stats-wrapper"> 368 <div class="social-media-bar"> 369 <span>Compartir: </span> 370 <a href="https://www.facebook.com/sharer/sharer.php?u=${currentURL}" class="btn-rrss" title="Compartir en Facebook" aria-label="Compartir en Facebook" target="_blank"> 371 <i class="fab fa-facebook-f" aria-hidden="true"></i> 372 </a> 373 <a href="https://twitter.com/share?url=${currentURL}&text=${titulo.getData()}" class="btn-rrss" title="Compartir en Twitter" aria-label="Compartir en Twitter" target="_blank"> 374 <i class="fab fa-twitter" aria-hidden="true"></i> 375 </a> 376 </div> 377 </div> 378 </section> 379 </article> 380 </section> 381 </div> 382 <div class="col-xl-3 col-lg-12"> 383 <section class="sticky-wrapper"> 384 <!-- Destacados --> 385 <#assign destacados = getterUtil.getString(themeDisplay.getThemeSetting("Destacados")) /> 386 <#if destacados != "UNSET" && destacados?trim != "" > 387 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 388 <#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 389 390 <#assign article = journalArticleLocalService.getLatestArticle(getterUtil.getLong(groupId), destacados, 0) /> 391 <#assign document = saxReaderUtil.read(article.getContent()) /> 392 <#assign enlaces = document.selectNodes("/root/dynamic-element[@name='texto_enlaceFieldSet']") /> 393 394 <nav class="destacados" aria-label="Menú secciones destacadas" role="navigation"> 395 <div class="destacados-header" tabindex="0"> 396 <span>Destacados</span> 397 </div> 398 399 <ul role="tree"> 400 <#assign count = 1 /> 401 <#-- Tomamos unicamente los 4 primeros destacados. --> 402 <#list enlaces[0..3] as enlace> 403 <#assign 404 texto = enlace.selectSingleNode("dynamic-element[@name='texto_enlace']/dynamic-content[@language-id='es_ES']").getText() 405 icono = enlace.selectSingleNode("dynamic-element[@name='texto_enlaceFieldSetFieldSet']/dynamic-element[@name='icono']/dynamic-content[@language-id='es_ES']").getText() 406 url = enlace.selectSingleNode("dynamic-element[@name='texto_enlaceFieldSetFieldSet']/dynamic-element[@name='enlace']/dynamic-content[@language-id='es_ES']").getText() 407 layoutID = url?split(",")?last?split(":")?last?replace("\"","")?replace("}","") 408 groupID = url?split(",")?first?split(":")?last?replace("\"","")?replace("{","") 409 pageLayout = layoutLocalService.getLayout(groupID?number, false, layoutID?number) 410 layoutURL = pageLayout.getFriendlyURL() 411 /> 412 <li role="treeitem"> 413 <a href="${layoutURL}" class="enlace-destacado color-${count}" aria-label="${texto}"> 414 <span class="destacado-icon ${icono}"></span> 415 <span>${texto}</span> 416 </a> 417 </li> 418 <#assign count = count + 1 /> 419 </#list> 420 </ul> 421 </nav> 422 </#if> 423 424 425 <div class="submenu-nav-wrapper"> 426 <#-- Establecemos las preferencias para la configuración del menú de navegación de los subniveles --> 427 <#-- Obtenemos el valor del theme-setting que define la plantilla que se aplicará al menú, si esta vacia aplicaremos el formato lista. --> 428 <#assign nav_adt_id = getterUtil.getString(themeDisplay.getThemeSetting("AdtMenuNavegacion")) /> 429 <#if (nav_adt_id?trim ="")> 430 <#assign nav_adt_id = "ddmTemplate_LIST-MENU-FTL" /> 431 <#else> 432 <#assign nav_adt_id = "ddmTemplate_"+nav_adt_id /> 433 </#if> 434 <#assign subNavPreferencesMap = { 435 "siteNavigationMenuType": "6", 436 "displayStyle": nav_adt_id?string, 437 "rootMenuItemType": "relative", 438 "rootMenuItemLevel": "2", 439 "displayDepth": "0", 440 "expandedLevels": "auto" 441 }/> 442 443 <#assign myInstanceId = pageId+"_nav_menu" /> 444 445 <@liferay.navigation_menu 446 default_preferences=freeMarkerPortletPreferences.getPreferences(subNavPreferencesMap) 447 instance_id= myInstanceId 448 /> 449 </div> 450 </section> 451 </div> 452 </div> 453 </div> 454 </div> 455 </div> 456</div> 457 458<script> 459 /* Controlamos la posición del sticky-wrapper en funcion de la existencia del menu de control */ 460 if($('#ControlMenu').length){ 461 $('.sticky-wrapper').css('top','128px'); 462 } 463</script>