Nuevo Panel de Información Sísmica Interactivo
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy57.getCategories()" threw an exception when invoked on com.sun.proxy.$Proxy57 object "com.liferay.asset.categories.internal.service.AssetCategoryPropertyAssetCategoryLocalServiceWrapper@6da3f1d6"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign categories = assetCategoryLoc... [in template "20099#20125#46523" at line 51, column 33]
----
1<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
2<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
3
4<style>
5.images-menu {
6 flex-direction: column;
7 padding-left: 2rem;
8}
9.images-menu a .d-block {
10 position: relative;
11 text-align: center;
12 height: 10rem;
13 max-width: 22rem;
14 min-width: 10rem;
15}
16.images-menu a .d-block img {
17 width: 100%;
18 height: 100%;
19 object-fit: cover;
20 filter: brightness(60%);
21}
22.images-menu a > div .text-block {
23 position: absolute;
24 top: 50%;
25 left: 50%;
26 transform: translate(-50%, -50%);
27 color: white;
28 font-weight: bold;
29 overflow: hidden;
30 white-space: nowrap;
31 text-overflow: ellipsis;
32 padding: 1rem;
33 width: 100%;
34 text-shadow:1px 1px 2px black;
35}
36
37</style>
38
39<#if GrupoDeCampos84084109?has_content>
40 <div class="images-menu d-flex">
41 <#list GrupoDeCampos84084109.getSiblings() as item>
42
43 <#assign url = "">
44 <#assign target = "">
45 <#if (item.urlEnlace.getData())?? && item.urlEnlace.getData() != "">
46 <#assign url = item.urlEnlace.getData() />
47 <#assign target = "_blank">
48 </#if>
49 <#if (item.palabraClave.getData())?? && item.palabraClave.getData() != "">
50 <#assign categoryId = 0 />
51 <#assign categories = assetCategoryLocalService.getCategories() />
52 <#list categories as category>
53 <#if category.getName()?lower_case == item.palabraClave.getData()?lower_case>
54 <#assign categoryId = category.getCategoryId() />
55 </#if>
56 </#list>
57
58 <#if categoryId != 0>
59 <#assign url = "/archivo/-/categories/" + categoryId />
60 <#assign target = "_self">
61 </#if>
62 </#if>
63
64 <a href="${url}" target="${target}">
65 <div class="d-block mb-4">
66 <#if (item.urlImagen.getData())?? && item.urlImagen.getData() != "">
67 <img alt="" src="${item.urlImagen.getData()}" />
68 </#if>
69
70 <#if (item.imagen.getData())?? && item.imagen.getData() != "">
71 <img alt="${item.imagen.getAttribute("alt")}" data-fileentryid="${item.imagen.getAttribute("fileEntryId")}" src="${item.imagen.getData()}" />
72 </#if>
73
74 <#if (item.textoImagen.getData())??>
75 <div class="text-block">
76 ${item.textoImagen.getData()}
77 </div>
78 </#if>
79 </div>
80 </a>
81
82 </#list>
83 </div>
84</#if>