Actualidad Fundación
botones fundacion
Publicador de contenidos
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") [in template "20155#20195#1900807" at line 1, column 38] ---- Tip: If the failing expression is known to be 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: #assign assetCategoryLocalService = s... [in template "20155#20195#1900807" at line 1, column 1] ----
1<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")>
2<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService")>
3<#assign listVoc = assetVocabularyLocalService.getGroupVocabularies(themeDisplay.getSiteGroupId())>
4<#assign assetTagLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService")>
5
6<!--Multiidioma-->
7<#assign readMore = languageUtil.get(locale, "read-more")/>
8
9<!--Nombre de página detalle y buscamos si el contexto es público o privado-->
10<#assign paginaDetalleNoticia = "detalle-noticia" />
11<#if themeDisplay.getLayout().isPrivateLayout()>
12 <#assign contexto = "/group/canal-online/"/>
13<#else>
14 <#assign contexto = "/web/canal-online/"/>
15</#if>
16
17<#if listVoc?has_content>
18 <#list listVoc as voc>
19 <#if voc.name == "Noticias">
20 <#assign vocId = voc.vocabularyId />
21 </#if>
22 </#list>
23</#if>
24
25<#if entries?has_content>
26<div class="contenido">
27 <div class="content-middle">
28 <#list entries as curEntry>
29 <#assign entryClass = curEntry.getClass()/>
30 <#if entryClass == "class com.liferay.portlet.journal.model.impl.JournalArticleImpl">
31 <#assign article = curEntry/>
32 <#assign docXml = saxReaderUtil.read(curEntry.getContentByLocale(locale)) />
33 <#assign Tag = assetTagLocalService.getTagNames(curEntry.getClassName(), article.getResourcePrimKey())/>
34 <#assign categories = assetCategoryLocalService.getCategories(curEntry.getClassName(), article.getResourcePrimKey())/>
35 <#else>
36 <#assign article = curEntry.getAssetRenderer().getArticle() />
37 <#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) />
38 <#assign Tag = assetTagLocalService.getTagNames(curEntry.getAssetRenderer().getClassName(), article.getResourcePrimKey())/>
39 <#assign categories = assetCategoryLocalService.getCategories(curEntry.getAssetRenderer().getClassName(), article.getResourcePrimKey())/>
40 </#if>
41 <#assign titulo = docXml.valueOf("//dynamic-element[@name='TituloPrincipal']/dynamic-content/text()") />
42 <#assign subTitulo = docXml.valueOf("//dynamic-element[@name='Subtitulo']/dynamic-content/text()") />
43 <#assign image = docXml.valueOf("//dynamic-element[@name='ImgPrincipal']/dynamic-content/text()") />
44 <#assign fch = docXml.valueOf("//dynamic-element[@name='FechaNoticia']/dynamic-content/text()") />
45 <#assign FechaNoticia_Data = getterUtil.getLong(fch)>
46 <#assign DescripcionNoticia = docXml.valueOf("//dynamic-element[@name='Subtitulo']/dynamic-content/text()") />
47 <#assign textoEnlace = docXml.valueOf("//dynamic-element[@name='TextoEnlace']/dynamic-content/text()") />
48 <#assign urlEnlace = docXml.valueOf("//dynamic-element[@name='UrlEnlace']/dynamic-content/text()") />
49
50
51 <div class="noticia">
52 <#if image?has_content>
53 <div class="imagenNot">
54
55 <figure class="contImg">
56 <img class="img" alt="Imagen" src="${image}" />
57 </figure>
58 </div>
59 </#if>
60 <div class="contText">
61 <h2 class="titNoticia"> ${titulo} </h2>
62 <#if (FechaNoticia_Data > 0)>
63 <#assign FechaNoticia_DateObj = dateUtil.newDate(FechaNoticia_Data)>
64 <div class="fechaTipo">
65 <span class="tipo"><strong>${dateUtil.getDate(FechaNoticia_DateObj, "dd MMM yyyy", locale)}</strong></span>
66
67 </div>
68 </#if>
69 <div class="descripcion limited-description-box">
70 <div>
71 ${DescripcionNoticia}
72 </div>
73 </div>
74 <div class="leerMas">
75 <#assign visorId = "56_INSTANCE_0iQqs56i5XFY" />
76 <#if entryClass == "class com.liferay.portlet.journal.model.impl.JournalArticleImpl">
77 <#assign article = curEntry/>
78 <#else>
79 <#assign article = curEntry.getAssetRenderer().getArticle() />
80 </#if>
81 <#assign articleId = article.getArticleId() />
82 <#assign groupId = themeDisplay.getScopeGroupId() />
83 <#assign urlGo = "${contexto}"+"${paginaDetalleNoticia}"+"/-/journal_content/"+"${visorId}"+"/${groupId}/${articleId}?" />
84 <a style="color: #903" href="${urlGo}" class="link">
85 ${readMore}<i class="icon-chevron-right"></i>
86 </a>
87 </div>
88 </div>
89
90 </div>
91 </#list>
92</div>
93</div>
94</#if>