Organización - PortalWeb_FCC
Comprometidos con el buen gobierno
Ponemos el foco en la gestión eficiente de los recursos y en la creación de relaciones duraderas, con el apoyo de nuestras capacidades empresariales.
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> utilVariables [in template "12187455#12187494#19935376" at line 9, column 30] ---- 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: templateId = utilVariables.getIdTempl... [in template "12187455#12187494#19935376" at line 9, column 17] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
2<#list entries as entry>
3 <#assign
4 entry = entry
5 assetRenderer = entry.getAssetRenderer()
6 entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale))
7 journalArticle = assetRenderer.getArticle()
8 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, entry, !stringUtil.equals(assetLinkBehavior, "showFullContent"))
9 templateId = utilVariables.getIdTemplateByName("PL_DESTACADO_VERTICAL","portalwebfcc")
10 DDMTemplateLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMTemplateLocalService")
11 ddmTemplate = DDMTemplateLocalService.getTemplate(templateId)
12 redirectURL = renderResponse.createRenderURL()
13 />
14
15 <div class="asset-content">
16 <@getEditIcon />
17 ${journalArticleLocalService.getArticleContent(journalArticle, ddmTemplate.getTemplateKey(), "VIEW", locale.toString(), null, themeDisplay)}
18 </div>
19 </div>
20</#list>
21
22<#macro getEditIcon>
23 <#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())>
24 <#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("NORMAL"), themeDisplay.getURLCurrent())!"" />
25
26 <#if validator.isNotNull(editPortletURL)>
27 <#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) />
28
29 <@liferay_ui["icon"]
30 cssClass="icon-monospaced visible-interaction"
31 icon="pencil"
32 markupView="lexicon"
33 message=title
34 url=editPortletURL.toString()
35 />
36 </#if>
37 </#if>
38</#macro>