Se ha producido un error al procesar la plantilla.
Failed to get value for key "com.liferay.asset.kernel.service.AssetLinkLocalServiceUtil"; see cause exception.
----
FTL stack trace ("~" means nesting-related):
- Failed at: assetLinkLocalServiceUtil = staticUti... [in template "627756#627784#637978" at line 71, column 5]
----
1<style>
2 .categoriasNot span{
3 background-color: #363d58;
4 color: var(--white);
5 padding: 3px 7px;
6 text-transform: uppercase;
7 font-weight: bolder;
8 font-size: 10px;
9 }
10 .border-relacionados{
11 border-bottom: 1px solid #fff;
12 padding: 0px;
13 padding-bottom: 10px;
14 }
15 .portlet-body .component-title .header-back-to {
16 left: 2%;
17 position: absolute;
18 top: 0%;
19 }
20 .noticia .row {
21 display: flex;
22 flex-wrap: wrap;
23 margin-left: 0;
24 margin-right: 0;
25 }
26 .portlet-body .mb-2 {
27 margin-bottom: -22px !important;
28 }
29 .portlet-content-container .header-back-to a {
30 color: var(--primary);
31 }
32 .portlet-layout.row {
33 margin-right: 0;
34 margin-left: 0;
35 }
36 .portlet-body .mb-5, .portlet-body .my-5 {
37 margin-bottom: 0rem !important;
38 }
39 .mb-2 {
40 margin-bottom: -1rem !important;
41 }
42 .contenido-portlet .portlet-content-container .header-back-to {
43
44 position: absolute;
45 }
46 .container2 {
47 max-width: 76.25rem;
48 margin: 0 auto;
49 }
50 .component-title .d-inline{
51 display: none !important;
52 }
53 .containerRelatedContents {
54 padding: 1rem;
55 background-color: rgb(54, 60, 88);
56 margin-left: -8.5px;
57 }
58 .seguir-leyendo a{
59 padding-top: 1rem;
60 color: var(--primary);
61 }
62 .titRelated h3, .entradilla-relacionados-nota {
63 color: rgb(255, 255, 255);
64 }
65 .titRelated h3{
66 font-size: 1.75rem;
67 }
68</style>
69<#setting locale = "es_ES"/>
70<#assign
71 assetLinkLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetLinkLocalServiceUtil"]
72 assetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"]
73 layoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"]
74 journalArticleLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleLocalServiceUtil"]
75
76 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
77 layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")
78 article = journalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data)
79 assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
80 asset = assetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey)
81 entryTitle = .vars['reserved-article-title'].data
82
83
84 journalArticleId = .vars['reserved-article-id'].data
85 currentArticle = journalArticleLocalServiceUtil.getArticle(groupId, journalArticleId)
86 currentArticleResourcePrimKey = currentArticle.getResourcePrimKey()
87 currentArticleAssetEntry = assetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey)
88 currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId()
89 assetLinks = assetLinkLocalServiceUtil.getLinks(currentArticleAssetEntryId)
90
91 serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()
92 themeDisplay = serviceContext.getThemeDisplay()
93 currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()
94
95 originPortletInstanceId = renderRequest.getParameter("originPortletInstanceId")!""
96 journalArticleId = .vars['reserved-article-id'].data
97/>
98<div class="noticia">
99 <div class="noticia-detalle-1col">
100 <div class="container2">
101 <div style="padding-bottom: 1rem;">
102 <p style="display: inline; color: var(--primary);"><strong>Fecha: </strong></p>
103 <#assign fechaDePublicacion_Data = getterUtil.getString(fechaDePublicacion.getData())>
104 <#if validator.isNotNull(fechaDePublicacion_Data)>
105 <#assign fechaDePublicacion_DateObj = dateUtil.parseDate("yyyy-MM-dd", fechaDePublicacion_Data, locale)>
106
107 ${dateUtil.getDate(fechaDePublicacion_DateObj, "dd' de 'MMMM' de 'yyyy", locale)}
108 </#if>
109 </div>
110 <div><h1>${.vars['reserved-article-title'].data}</h1></div>
111 <#if mostarImagen.getData() = "true">
112 <div style="margin: auto; display: block; padding: 0px 0 40px 0px;">
113 <#if (imagen.getData())?? && imagen.getData() != "">
114 <img style= "width: 100%;" alt="${imagen.getAttribute("alt")}" data-fileentryid="${imagen.getAttribute("fileEntryId")}" src="${imagen.getData()}" />
115 </#if>
116 </div>
117 </#if>
118 </div>
119 <#assign backFriendlyURL = renderRequest.getParameter("redirect")!"" />
120 <div style="background-color: var(--gray-200); border-top: 1px solid #ccc;">
121 <div class="container2" style="padding: 2rem 0;">
122 <div class="contenido-detalle-1col">
123 <div>${contenido.getData()}</div>
124
125 <div class="categoriasNot">
126 <#assign etiquetas = getterUtil.getString(.vars['reserved-article-asset-tag-names'].data)>
127 <#if validator.isNotNull(etiquetas)>
128 <#list etiquetas?split(",") as Etiquetass>
129 <span>${Etiquetass}</span>
130 </#list>
131 </#if>
132 </div>
133 <!--Redes Sociales-->
134 <div style="padding-bottom: 0; padding-top: 2.25rem;">
135 <div style="color: #424242" class="social-container">
136 <ul class="social-widget contListado" style="padding-inline-start: 0px;margin-bottom: 0px;">Compartir:
137 <@liferay_social_bookmarks["bookmarks"]
138 className="com.liferay.journal.model.JournalArticle"
139 classPK=currentArticle.getArticleId()?number
140 displayStyle="horizontal"
141 maxInlineItems=4
142 target="_blank"
143 types="facebook,twitter,linkedin"
144 url=currentUrl
145 />
146 </ul>
147 </div>
148 </div>
149 <!-- Fin de Redes Sociales-->
150 </div>
151 </div>
152 </div>
153 <!--Contenidos Relacionados Notas De Prensa-->
154 <#if (assetLinks?size>0) >
155 <div class="containerRelatedContents contenido" style="padding-left: 0rem;">
156 <div class="container2" style="padding: 1.5rem 13px;">
157 <div class="titRelated"><h3>Contenidos Relacionados:</h3></div>
158 <div class="row">
159 <#list assetLinks as assetLink>
160 <#assign assetEntry=assetEntryLocalServiceUtil.getAssetEntry(assetLink.getEntryId2()) linkArticleId=assetEntry.getClassPK() linkArticle=journalArticleLocalServiceUtil.getLatestArticle(linkArticleId) />
161 <#if (linkArticle??) && (assetLink.getEntryId2() !=currentArticleAssetEntryId)>
162 <#assign document=saxReaderUtil.read(linkArticle.getContent()) linkArticleTitle=document.valueOf("//dynamic-element[@name='reserved-article-title']") viewURL=linkArticle.getUrlTitle() + "?redirect=" + backFriendlyURL entradilla=document.valueOf("//dynamic-element[@name='entradilla']") />
163 <#if viewURL??>
164 ${renderRequest.setAttribute("viewURL", viewURL )}
165 <div class="col-md-12 border-relacionados">
166 <div class="cajaBlanca">
167 <div class="titulo-relacionados-nota">
168 <div class="ellipsis2" style="font-size:1rem;">
169 <p><a title="${linkArticleTitle}" href="${viewURL}" target="_blank">${linkArticleTitle}<span class="sr-only">(abre en nueva ventana)</span></a></p>
170 </div>
171 </div>
172 <div class="entradilla-relacionados-nota ellipsis3">
173 <div>
174 ${entradilla}
175 </div>
176 </div>
177 <div class="seguir-leyendo">
178 <a href="${viewURL!""}">Seguir Leyendo</a>
179 </div>
180 </div>
181 </div>
182 </#if>
183 </#if>
184 </#list>
185 </div>
186 </div>
187 </div>
188 </#if>
189 <!--Fin de Contenidos Relacionados Notas De Prensa-->
190 </div>
191 </div>
192</div>