Städte
Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> curCityImageUrlClean [in template "31911#31945#86506" at line 71, column 139]
----
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: ${curCityImageUrlClean} [in template "31911#31945#86506" at line 71, column 137]
----
1<#assign ORG_ID = layout.getGroup().getExpandoBridge().getAttribute("countryCode")/>
2<#setting url_escaping_charset='UTF-8'>
3<#if entries?has_content>
4 <#assign lsbCityLocalService = serviceLocator.findService("es.saba.sb.parking.service.LSBCityLocalService")
5 lsbParkingLocalService = serviceLocator.findService("es.saba.sb.parking.service.LSBParkingLocalService")
6 dLAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")
7 assetsDisplayedList =[]
8 know_city_name = "conoce-ciudad"
9 />
10 <#list entries as curEntry>
11 <#assign
12 entry = curEntry
13
14 assetRenderer = entry.getAssetRenderer()
15 />
16 <#if assetRenderer.isDisplayable()>
17 <#assign
18 assetsDisplayedList = assetsDisplayedList + [assetRenderer]
19 />
20 </#if>
21 </#list>
22 <#if assetsDisplayedList?has_content>
23
24 <section class="mx54-t">
25 <article>
26 <div class="module-4">
27 <div class="container-fluid">
28 <#list assetsDisplayedList as curAsset>
29 <#attempt>
30 <#assign curCity = lsbCityLocalService.getLSBCity(curAsset.classPK)
31 viewURL = curAsset.getURLViewInContext(renderRequest, renderResponse, "/")
32 numParkings = lsbParkingLocalService.findByCodCityAssociatedCount(curCity.getCodCity())
33 curCityFolder = dLAppService.getFolder(curCity.getDlFolderId())
34 curCityFolderKnown = dLAppService.getFolder(curCityFolder.getGroupId(), curCityFolder.getFolderId(), know_city_name)
35 curCityImages = dLAppService.getFileEntries(curCityFolderKnown.getGroupId(), curCityFolderKnown.getFolderId())
36 curCityImage = curCityImages?last
37 curCityImageUrl = themeDisplay.getPortalURL() + "/documents/" + curCityImage.getGroupId() + "/" + curCityImage.getFolderId() + "/" + curCityImage.getTitle()?url
38 curCityImageUrlClean = curCityImageUrl?replace("&imagePreview=1","")
39 />
40 <#recover>
41 </#attempt>
42 <#if viewURL??>
43 <div class="${curAsset?item_cycle('col-sm-6', 'col-sm-6', 'col-sm-4', 'col-sm-4', 'col-sm-4')}">
44 <a href="${viewURL}" title="${curAsset.getTitle(themeDisplay.getLocale())}">
45 <div class="inner">
46 <div class="content">
47 <p class="h4">${curAsset.getTitle(themeDisplay.getLocale())}</p>
48 <#if numParkings != 0>
49 <p class="info">
50 <span>
51 <#if ORG_ID != "703">
52 ${numParkings} <@liferay.language key="templates-cities-parkings"/>
53 </#if>
54 <#if ORG_ID == "703">
55 <#if numParkings ==1>
56 ${numParkings} <@liferay.language key="templates-cities-parkings-1"/>
57 </#if>
58 <#if (numParkings > 1 && numParkings < 10) >
59 ${numParkings} <@liferay.language key="templates-cities-parkings"/>
60 </#if>
61 <#if (numParkings > 9) >
62 ${numParkings} <@liferay.language key="templates-cities-parkings-10"/>
63 </#if>
64 </#if>
65 </span>
66 </p>
67 </#if>
68 <button class="btn btn-secondary btn-secondary-b btn-lg" type="button"><@liferay.language key="templates-cities-see-all-parkings"/></button>
69 </div>
70 </div>
71 <div class="image-wrapper" style="background-image: url(${curCityImageUrlClean})"></div>
72 </a>
73 </div>
74 </#if>
75 </#list>
76 </div>
77 </div>
78 </article>
79 </section>
80 </#if>
81</#if>




