Produciuse un erro ao procesar o modelo.
The following has evaluated to null or missing: ==> ImagenCarpeta.getData()?split("/")[3] [in template "20097#20123#71698" at line 13, column 29] ---- Tip: It's the final [] step that caused this error, not those before it. ---- Tip: If the failing expression is known to 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 folderId = ImagenCarpeta.getD... [in template "20097#20123#71698" at line 13, column 9] ----
1<#-- Evitar request undefined al procesar la plantilla para obtener descripcion -->
2<#if .vars['request']?has_content>
3 <#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/>
4 <#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
5
6 <#assign OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"]>
7 <#assign filesOrderBy = OrderByComparatorFactoryUtil.create("DLFileEntry", ["createDate", false])>
8
9<div class="container">
10 <h2>${Titulo.getData()}</h2>
11
12 <#if ImagenCarpeta?has_content >
13 <#assign folderId = ImagenCarpeta.getData()?split("/")[3]?number/>
14
15 <#assign files = DLFileEntryLocalService.getFileEntries(groupId, folderId, -1, -1, filesOrderBy)/>
16
17 <#assign multimediaURL = portal.getPathFriendlyURLPublic() + GroupLocalService.getGroup(groupId).getFriendlyURL() + "/multimedia" />
18
19 <#if (files?has_content)>
20
21 <div class="galeriaImagenes">
22
23 <#list files?reverse as file>
24 <#if !file.isInTrash()>
25 <#assign urlTitle = file.getTitle() />
26 <#assign src = "/documents/${groupId}/${folderId}/${urlTitle}" />
27
28 <#assign class = "" />
29 <#if file.getDescription() != "" >
30 <#assign class = "class=\"show-description\"" />
31 </#if>
32
33
34
35 <figure>
36 <a href="${src}" data-fslightbox="gallery"><img src="${src}" alt="${file.getDescription()}" /></a>
37 </figure>
38
39
40
41
42
43
44 </#if>
45 </#list>
46
47 </div>
48
49 <div class="boton-volver btn btn-primary mt-3 right">
50 <a class="link-volver" href="${multimediaURL}"><i class="fas fa-caret-left"></i> ${languageUtil.format(locale, "back-to-x", "multimedia")}</a>
51 </div>
52
53
54 </#if>
55 </#if>
56
57 </div>
58
59
60
61
62<script src="/o/institucional-theme/js/fslightbox.js"></script>
63
64
65
66
67<#else>
68 ${Titulo.getData()}
69</#if>