Se ha producido un error al procesar la plantilla.
Error on line 22, column 5 in 10154#10192#8248901
journalArticleLocalService.getArticle(getterUtil.getLong(groupId), idConsejeria) is undefined.
It cannot be assigned to article
1<#-- SE AISLA EL IDENTIFICADOR DE LA CONSEJERÍA --> 
2<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
3<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
4<#assign tipo = "" /> 
5<#if themeDisplay.getURLCurrent()?contains("novedades") > 
6    <#assign tipo = "Novedades"/> 
7<#elseif themeDisplay.getURLCurrent()?contains("tramites") > 
8    <#assign tipo = "Trámites" /> 
9</#if> 
10 
11<#if themeDisplay.getURLCurrent()?contains("consejeriaId=")> 
12    <#assign inicio = themeDisplay.getURLCurrent()?index_of("consejeriaId")+13/> 
13    <#assign fin = themeDisplay.getURLCurrent()?index_of("&", inicio)-1/> 
14    <#if fin gt 0> 
15        <#assign idConsejeria = themeDisplay.getURLCurrent()[inicio..fin]/> 
16    <#else> 
17        <#assign idConsejeria = themeDisplay.getURLCurrent()[inicio..]/> 
18    </#if>  
19    <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
20    <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService" ) /> 
21    <#assign assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService" ) /> 
22    <#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), idConsejeria)/> 
23	<#assign document = saxReaderUtil.read(article.getContent()) /> 
24	<#assign rootElement = document.getRootElement()  /> 
25    <#list rootElement.elements() as dynamicElement > 
26		<#if "titulo-presentacion" == dynamicElement.attributeValue("name") > 
27			<#assign title = dynamicElement.element("dynamic-content").getText() /> 
28		</#if>			 
29    </#list> 
30    <div class="consejeria"> 
31        <h1>${tipo} de la ${title}</h1> 
32    </div> 
33</#if>    
34<script> 
35    $(document).ready(function() {$(".breadcrumb > .last > a").css("pointer-events", "none");}); 
36</script> 




No se han encontrado resultados