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