An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy154.getTag(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy154 object "com.liferay.asset.tags.internal.service.AssetTagStatsAssetTagLocalServiceWrapper@2b4f36d4"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #local tagObject = assetTagLocalServi... [in template "1951451#1951490#27141296" in macro "getTerminosRelacionados" at line 45, column 9] - Reached through: @getTerminosRelacionados tagName=Titu... [in template "1951451#1951490#27141296" at line 39, column 9] ----
1<style>
2 .termino-relacionado:hover{
3 box-shadow: 0 5px 24px -5px #2C4866;
4 }
5</style>
6<#assign assetTagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") />
7<#assign assetEntryQueryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
8<#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") />
9<#assign default_text_size = "h3" >
10
11<#if (Titulo.AtributoTitulo.getData())?? && Titulo.AtributoTitulo.getData() != "">
12 <#assign titulo_seccion_size = Titulo.AtributoTitulo.getData()>
13<#else>
14 <#assign titulo_seccion_size = default_text_size >
15</#if>
16
17
18<div class="row margin-top-components">
19 <#-- TITULO DE TERMINO -->
20 <#if (Titulo.getData())?? && Titulo.getData() != "" >
21 <div class="col-12" style="margin-bottom: 30px;">
22 <${titulo_seccion_size}>${Titulo.getData()}</${titulo_seccion_size}>
23 </div>
24 </#if>
25
26 <#-- CUERPO DE TERMINO -->
27 <#if (Body.getData())?? && Body.getData() != "" >
28 <div class="col-12" style="margin-bottom: 65px;">
29 ${Body.getData()}
30 </div>
31 </#if>
32
33 <#-- TERMINOS RELACIONADOS-->
34 <div class="col-12" style="margin-bottom: 30px;">
35 <h2>Términos relacionados</h2>
36 </div>
37
38 <#-- INSERTAR MACRO PARA BUSCAR TERMINOS RELACIONADOS -->
39 <@getTerminosRelacionados tagName=Titulo.getData()/>
40
41</div>
42
43<#macro getTerminosRelacionados tagName >
44
45 <#local tagObject = assetTagLocalService.getTag(groupId, tagName) />
46 <#local tagID = tagObject.getTagId() />
47
48 <#if validator.isNotNull(tagID) && tagID != 0>
49
50 <#local search = assetEntryQuery.setAllTagIds([tagID])>
51 <#local search2 = assetEntryQuery.setOrderByCol1("title")>
52
53 <#local teste = assetEntryQueryService.getEntries(assetEntryQuery)>
54
55 <#if validator.isNotNull(teste)>
56
57 <#list teste as object >
58 <#local obj = object.getAssetRenderer() >
59 <#local journalArticle = obj.getAssetObject() >
60
61 <div class="d-flex col-6 col-sm-6 col-lg-4" style="cursor: pointer;margin-bottom: 20px;">
62 <div class="termino-relacionado d-flex container col-12 contenedor-medium" style="flex-wrap: wrap;border-radius: 12px;" >
63
64 <#-- ddmTemplateKey TERMINOS LOCAL 40696 -->
65 <#-- ddmTemplateKey TERMINOS DESARROLLO 9816215 -->
66 <#-- ddmTemplateKey TERMINOS INTEGRACION 27141292 -->
67 <#-- ddmTemplateKey TERMINOS PRODUCCION 27141292 -->
68 <@liferay_journal["journal-article"]
69 articleId=journalArticle.getArticleId()
70 ddmTemplateKey="27141292"
71 groupId=journalArticle.getGroupId()
72 />
73 </div>
74
75 </div>
76
77 </#list>
78
79 </#if>
80
81 </#if>
82
83</#macro>