Logotipos Cofares
Publicador de contenidos
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") [in template "20155#20195#37873463" at line 1, column 35] ---- 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 AssetEntryLocalService = serv... [in template "20155#20195#37873463" at line 1, column 1] ----
1<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")>
2<#assign DLFolderLocalServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFolderLocalService")>
3<#assign DLFileEntryLocalServiceUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")>
4<#assign groupId = themeDisplay.getCompanyGroupId()>
5<#assign name = entry.getTitle(locale)>
6<#assign folder = DLFolderLocalServiceUtil.fetchFolder(groupId, 0, name)>
7<#assign logoStartDownload = languageUtil.get(locale, "com.cofares.liferay.constcaonl.select.logo.start.download")/>
8
9<#assign fileEntries = DLFileEntryLocalServiceUtil.getFileEntries(groupId, folder.getFolderId())>
10
11<#assign loop = 0>
12
13<#if fileEntries?has_content>
14 <p>${logoStartDownload}</p>
15 <div style="text-align: center;">
16 <#list fileEntries as curEntry>
17
18 <#assign url = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +"//"+ folder.getFolderId() + "//" + curEntry.getTitle()>
19
20 <div style="text-align: center;border: solid grey 1px; display: inline-block; margin: 20px; width: 200px; height: 130px;">
21 <a style="text-decoration: none;" href="${url}?download=true">
22 <span style="display:inline-block;vertical-align: middle;height:100%;"></span>
23 <img src="${url}" style="width: 50%;height: auto; margin: 0 auto;"/></a></div>
24
25 <#assign loop = loop+1>
26 <#if loop == 4>
27 <#assign loop = 0>
28 <br/>
29 </#if>
30 </#list>
31 </div>
32</#if>