My account - AGAMED
My account
Asset Publisher
BILLS AND PAYMENTS
Online payment
aqualogy.liferay.close
Access the service
An error occurred while processing the template.
The following has evaluated to null or missing: ==> defaultContent?eval["classPK"] [in template "20116#20152#63480" at line 70, column 85] ---- Tip: It's the final [] step that caused this error, not those before it. ---- 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 journalArticle = JournalArtic... [in template "20116#20152#63480" in macro "printContent" at line 70, column 13] - Reached through: @printContent [in template "20116#20152#63480" at line 134, column 33] ----
1<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService")>
2<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
3<#assign JournalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")>
4<#assign ClassNameLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ClassNameLocalService")>
5<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
6<#assign DDMStructureLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService") >
7<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
8<#assign LanguageUtil = staticUtil["com.liferay.portal.kernel.language.LanguageUtil"]>
9
10
11<#attempt>
12 <#assign parentIndex = serviceContext.getRequest().getAttribute("parentSectionIndex")>
13<#recover>
14 <#assign parentIndex = "1">
15</#attempt>
16
17<#attempt>
18 <#assign subsectionIndex = serviceContext.getRequest().getAttribute("subsectionIndex")>
19<#recover>
20 <#assign subsectionIndex = "1">
21</#attempt>
22
23<#function getEntryId link knownId>
24 <#assign id1 = link.getEntryId1()>
25 <#assign id2 = link.getEntryId2()>
26 <#return (knownId == id1)?then(id2, id1)>
27</#function>
28
29<#function linkExists link>
30 <#return link?? && link.getData()?? && (link.getData() != "")>
31</#function>
32
33<#macro printImage>
34<#if Imagendhvv.getData()?? && Imagendhvv.getData() != "">
35 <img alt="${Imagendhvv.getAttribute("alt")}" src="${Imagendhvv.getData()}" />
36</#if>
37</#macro>
38<#macro printContent>
39 <#assign journalClassName = "com.liferay.journal.model.JournalArticle">
40 <#assign journalArticleId = .vars['reserved-article-id'].data>
41 <#assign articleResourcePK = JournalArticleResourceLocalService.getArticleResourcePrimKey(groupId, journalArticleId)/>
42 <#assign assetEntry = AssetEntryLocalService.getEntry(journalClassName, articleResourcePK?number)>
43 <#assign webContentEntryId = assetEntry.getEntryId()>
44 <#assign links = AssetLinkLocalService.getDirectLinks(webContentEntryId)>
45 <#assign printDefaultContent = true>
46 <#list links as link>
47 <#assign assetEntryId = getEntryId(link, webContentEntryId)>
48 <#assign assetEntry = AssetEntryLocalService.getEntry(assetEntryId)>
49 <#assign className = ClassNameLocalService.getClassName(assetEntry.getClassNameId()).getValue()>
50 <#if className == journalClassName>
51 <#assign resourcePK = assetEntry.getClassPK()>
52 <#assign journalArticle = JournalArticleLocalService.fetchLatestArticle(resourcePK)>
53 <#if journalArticle??>
54 <#assign structure = DDMStructureLocalService.getStructure(groupId, assetEntry.getClassNameId(),journalArticle.getDDMStructureKey(), true) >
55 <#if structure.getName(locale) != "Gestión"> <!-- and municipio = municipio actual-->
56 <#assign articleDisplay = JournalArticleLocalService.getArticleDisplay(journalArticle.getGroupId(), journalArticle.getArticleId(), journalArticle.getDDMTemplateKey(), null,
57 LanguageUtil.getLanguageId(locale), themeDisplay)>
58
59 ${articleDisplay.getContent()}
60
61 <#assign printDefaultContent = false>
62 <#break>
63 </#if>
64 </#if>
65 </#if>
66 </#list>
67 <#if printDefaultContent == true>
68 <#assign defaultContent = ContenidoDeLaWebPorDefecto.getData()>
69 <#if defaultContent?? && defaultContent!="">
70 <#assign journalArticle = JournalArticleLocalService.fetchLatestArticle(defaultContent?eval["classPK"]?number)>
71 <#assign articleDisplay = JournalArticleLocalService.getArticleDisplay(journalArticle.getGroupId(), journalArticle.getArticleId(), journalArticle.getDDMTemplateKey(), null, LanguageUtil.getLanguageId(locale), themeDisplay)>
72
73 ${articleDisplay.getContent()}
74
75 </#if>
76 </#if>
77</#macro>
78
79<#if linkExists(EnlaceDirecto)>
80
81
82 <a href="${EnlaceDirecto.getData()}"
83 <#if EnlaceDirecto.blankDirecto?? && EnlaceDirecto.blankDirecto.getData() == "true">
84 target="_blank"
85 </#if>
86 <#if EnlaceDirecto.tituloDirecto?? && EnlaceDirecto.tituloDirecto.getData() != "">
87 title="${EnlaceDirecto.tituloDirecto.getData()}"
88 </#if>
89 class="btn-secciones btnNivelSecond" aria-expanded="false">
90 <@printImage/>
91 <span>${.vars['reserved-article-title'].data}</span>
92 </a>
93
94<#else>
95
96
97
98 <a href="#content-management-${parentIndex}-${subsectionIndex}" data-href="#content-management-${parentIndex}-${subsectionIndex}"
99 class="btn-toggle btn-secciones btnNivelSecond" aria-expanded="false"
100 data-position="${subsectionIndex}" data-parentposition="${parentIndex}" data-container="#container-nivel2-${parentIndex}"
101 data-group-panel="#list-management-${parentIndex}">
102 <@printImage/>
103 <span>${.vars['reserved-article-title'].data}</span>
104 </a>
105 <div id="content-management-${parentIndex}-${subsectionIndex}" class="panel-management-content"
106 data-panel="#panel-${parentIndex}-${subsectionIndex}" aria-expanded="false">
107 <div class="contenido">
108 <a class="btn close" href="#"><@liferay.language key="aqualogy.liferay.close" /></a>
109 <div class="box col-md-8 col-md-offset-2">
110 <h4><@liferay.language key="aqualogy.liferay.access.service" /></h4>
111
112 <div class="botones">
113 <#if linkExists(Enlace)>
114 <a href="${Enlace.getData()}" class="btn btn-primary ico-desbloqueado"
115 <#if Enlace.blankSinRegistro?? && Enlace.blankSinRegistro.getData() == "true">
116 target="_blank"
117 </#if>
118 <#if Enlace.tituloSinRegistro?? && Enlace.tituloSinRegistro.getData() != "">
119 title="${Enlace.tituloSinRegistro.getData()}"
120 </#if>
121 type="button"><@liferay.language key="aqualogy.liferay.without.registration" /></a>
122 </#if>
123 <#if linkExists(Enlaceconregistro)>
124 <a href="${Enlaceconregistro.getData()}" class="btn btn-primary ico-bloqueado"
125 <#if Enlaceconregistro.blankConRegistro?? && Enlaceconregistro.blankConRegistro.getData() == "true">
126 target="_blank"
127 </#if>
128 <#if Enlaceconregistro.tituloConRegistro?? && Enlaceconregistro.tituloConRegistro.getData() != "">
129 title="${Enlaceconregistro.tituloConRegistro.getData()}"
130 </#if>
131 type="button"><@liferay.language key="aqualogy.liferay.customers.area" /></a>
132 </#if>
133 </div>
134 <@printContent />
135 </div>
136 </div>
137 </div>
138
139</#if>
Activate online billing
aqualogy.liferay.close
Access the service
CHANGES TO DETAILS
Update bank details
aqualogy.liferay.close
Access the service
Update address details
aqualogy.liferay.close
Access the service
Update personal details
aqualogy.liferay.close