Errorea gertatu da txantiloia prozesatzerakoan.
Template inclusion failed (for parameter value "_TEMPLATE_CONTEXT_/20097/20121/20018/IM-BASE-JOURNAL-LANGUAGE-PROPERTIES"):
Unable to find FreeMarker template with ID _TEMPLATE_CONTEXT_/20097/20121/20018/IM-BASE-JOURNAL-LANGUAGE-PROPERTIES
----
FTL stack trace ("~" means nesting-related):
- Failed at: #include "${templatesPath}/IM-BASE-JO... [in template "20097#20123#954470" at line 6, column 1]
----
1<!--CARRUSEL ACTUALIDAD-->
2
3<#include "${templatesPath}/IM-BASE" />
4<#include "${templatesPath}/IM-BASE-DATE-HELPER">
5<#include "${templatesPath}/IM-BASE-HTML-HELPER">
6<#include "${templatesPath}/IM-BASE-JOURNAL-LANGUAGE-PROPERTIES">
7<#include "${templatesPath}/IM-BASE-SITE-HELPER">
8
9<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] />
10<#assign liferay_util = PortletJspTagLibs["/META-INF/liferay-util.tld"] />
11<#assign aui = PortletJspTagLibs["/META-INF/liferay-aui.tld"] />
12
13<#assign templateUtilsService = serviceLocator.findService("com.imserso.template.utils.service.TemplateUtilsService") />
14
15<#assign siteURL = getSiteUrl() />
16<#assign viewDetalleURLPattern = templateUtilsService.getURLDetalleActualidadPattern(themeDisplay, false) />
17
18<#assign siteGroupId = themeDisplay.getScopeGroupId() />
19
20<div class="rs_preserve rs_script">
21
22<#if siteGroupId == 1466725>
23 <script data-senna-track="temporary">
24 $(document).ready(function(){
25 /*$x('.carrusel-home').on('init', function(event, slick){
26 $x('.carrusel-home').removeClass("d-none");
27 });*/
28
29 //$x('.carrusel-home').removeClass("d-none");
30
31 $('.carrusel-home').not('.slick-initialized').slick({
32 autoplay: true,
33 arrows: true,
34 dots: false
35 });
36 $('.carr-pause').click(function() {
37 //console.log("pause")
38 $('.carrusel-home').slick('slickPause');
39 });
40 $('.carr-play').click(function() {
41 //console.log("play")
42 $('.carrusel-home').slick('slickPlay');
43 });
44
45
46 });
47 </script>
48
49<#else>
50
51 <!-- RSPEAK_STOP -->
52 <script type="text/javascript">
53 $(document).ready(function(){
54 $('.carrusel-home').not('.slick-initialized').slick({
55 autoplay: false,
56 arrows: true,
57 dots: false
58 });
59 });
60 </script>
61</#if>
62</div>
63
64<#if entries?has_content>
65 <div class="carrusel-home im-carrusel">
66 <#list entries as curEntry>
67 <#assign renderer = curEntry.getAssetRenderer()>
68 <#assign link = renderer.getURLViewInContext(renderRequest, renderResponse, '') />
69
70 <#assign journalArticle = renderer.getArticle()>
71 <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString()))>
72 <#assign entryTitle = htmlUtil.escape(renderer.getTitle(locale)) />
73 <#assign entryResumen = htmlUtil.escape(renderer.getSummary()) />
74 <!-- Campos -->
75 <#assign contenido = document.valueOf("//dynamic-element[@name='Contenido']/dynamic-content/text()") />
76 <#assign titulo = document.valueOf("//dynamic-element[@name='Titulo']/dynamic-content/text()") />
77 <#assign imgGS=document.valueOf("//dynamic-element[@field-reference='ImagenDestacada']/dynamic-content/text()") />
78 <#assign imgUuidGS = "" />
79 <#assign imgNameGS = "" />
80 <#assign imgGroupIdGS = "" />
81 <#assign imgAltGS = "" />
82
83 <#if imgGS?? && imgGS != "" && imgGS?trim != "{}">
84 <#assign imgUuidGS = imgGS?eval.uuid!"" />
85 </#if>
86 <#if imgUuidGS?has_content>
87 <#assign imgNameGS = imgGS?eval.title />
88 <#assign imgGroupIdGS = imgGS?eval.groupId />
89 <#assign imgAltGS = imgGS?eval.alt/>
90 <#assign imgAltGS = imgAltGS?replace('"', " ")>
91 <#assign imgAltGS = imgAltGS?replace('/', " ")>
92 <#assign imgAltGS = imgAltGS?replace('<', " ")>
93 <#assign imgAltGS = imgAltGS?replace('>', " ")>
94 <#assign imgAltGS = imgAltGS?replace('&', " ")>
95 </#if>
96
97 <#assign enlaceDetalleAbreNuevaVentana = false />
98 <#assign publicado = document.valueOf("//dynamic-element[@name='Publicado']/dynamic-content") />
99 <#if publicado?? && publicado?has_content>
100 <#assign webContentSiteId = getGroupIdByPublicadoPor(publicado) />
101 <#if themeDisplay.getSiteGroup().getGroupId() != webContentSiteId>
102 <#-- El contenido (url detalle) se va a mostrar en otro site según campo publicado -->
103 <#assign enlaceDetalleAbreNuevaVentana = true />
104 <#if webContentSiteId != GROUP_ID_SEDE_ELECTRONICA>
105 <#assign viewDetalleURL = templateUtilsService.getURLDetalleActualidadB(themeDisplay, journalArticle.urlTitle, webContentSiteId, journalArticle.getGroupId(), false) />
106 <#else>
107 <#-- Sede electrónica no dispone de página de detalle como tal, generamos url propia -->
108 <#assign viewDetalleURL = "/web/sede-electronica/novedades-en-la-sede#e" + curEntry.getEntryId() />
109 </#if>
110 </#if>
111 </#if>
112 <#if !enlaceDetalleAbreNuevaVentana>
113 <#-- El contenido (url detalle) se va a mostrar en el propio site donde se visualiza el carrusel -->
114 <#assign viewDetalleURL = viewDetalleURLPattern?replace("{contentUrlTitle}", journalArticle.urlTitle)?replace("{contentGroupId}", journalArticle.getGroupId()) />
115 </#if>
116
117 <#if imgAltGS??>
118 <div class="row carr-cont">
119 <div class="col-md-8 carr-cont-img">
120 <div class="edit-icon">
121 <@getEditIcon />
122 </div>
123
124 <#if imgUuidGS?has_content>
125 <img alt="${imgAltGS}" class="carr-img" src="/documents/${imgGroupIdGS}/0/${imgNameGS}/${imgUuidGS}" />
126 <#else>
127 <img alt="Imagen Imserso genérica" class="carr-img" src="/documents/d/global/ndgenerica" />
128 </#if>
129 </div>
130 <div class="col-md-4 carr-cont-link">
131 <div class="carr-link">
132 <span class="im-fecha txt-blanco" style="color:#fff !important">
133 <#assign fechaStr = dateUtil.getDate(journalArticle.getDisplayDate(), "dd - MM - yy", themeDisplay.getLocale(), themeDisplay.getTimeZone())>${fechaStr?replace("-", "‑")}
134
135
136 </span>
137 <p class="m-0">
138 <a ${enlaceDetalleAbreNuevaVentana?then("target='_blank' title='Abre nueva ventana'", "")} class="txt-blanco elipsis-5" href="${viewDetalleURL}">${removeFirstPHtmlTag(titulo)}</a>
139 </p>
140 </div>
141 </div>
142 </div>
143 </#if>
144
145 </#list>
146
147 </div>
148 <#if siteGroupId == 1466725>
149 <div class="carr-footer mt-2">
150 <div class="carr-controls">
151 <button class="btn carr-play"><span class="sr-only">Iniciar/reanudar transición</span></button><button class="btn carr-pause"><span class="sr-only">Detener transición</span></button>
152 </div>
153 <a class="btn btn-mas" href="${siteURL}/actualidad" target="_self"><@language key="language-ver-mas"/></a>
154 </div>
155 <#else>
156 <div class="carr-footer pt-2 d-flex justify-content-end">
157 <a class="btn btn-mas" href="${siteURL}/actualidad" target="_self"><@language key="language-ver-mas"/></a>
158 </div>
159 </#if>
160
161</#if>
162
163
164<#macro getEditIcon>
165 <#if renderer.hasEditPermission(themeDisplay.getPermissionChecker())>
166 <#assign editPortletURL = renderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("NORMAL"), themeDisplay.getURLCurrent())!"" />
167
168 <#if validator.isNotNull(editPortletURL)>
169 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
170
171 <@liferay_ui["icon"]
172 cssClass="icon-monospaced visible-interaction"
173 icon="pencil"
174 markupView="lexicon"
175 message=title
176 url=editPortletURL.toString()
177 />
178 </#if>
179 </#if>
180</#macro>
181
182<script>
183document.querySelectorAll('.carr-cont').forEach(card => {
184 card.addEventListener('click', e => {
185 if (e.target.closest('.edit-icon')) return;
186
187 // Buscar el enlace dentro de la tarjeta
188 const link = card.querySelector('.carr-link a');
189 if (link) {
190 if (link.target === "_blank") {
191 // Abrir en nueva ventana
192 window.open(link.href, "_blank");
193 } else {
194 // Abrir en la misma ventana
195 window.location.href = link.href;
196 }
197 }
198 });
199});
200</script>
Barkatu, ez dituzu portlet honetara sartzeko behar diren baimenak.
Barkatu, ez dituzu portlet honetara sartzeko behar diren baimenak.
Barkatu, ez dituzu portlet honetara sartzeko behar diren baimenak.
Barkatu, ez dituzu portlet honetara sartzeko behar diren baimenak.