Entdecken Sie unsere Standorte

Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> locationName  [in template "10154#10192#36923079" at line 73, column 86]

----
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: ${locationName}  [in template "10154#10192#36923079" at line 73, column 84]
----
1<style> 
2    .hays__r1__locations__list__item__location { 
3        background-color: #f7f7f7; 
4        color: #002776; 
5        margin-bottom: 30px; 
6
7 
8    .hays__r1__locations__list__item__location:hover { 
9        background-color: #002776; 
10        color: #FFF; 
11
12 
13    .hays__r1__locations__list__item__headline { 
14        font-size: 1.125rem; 
15        font-weight: bold; 
16        text-transform: uppercase; 
17
18 
19    .hays__r1__locations__list__item__link { 
20        padding-top: 10px; 
21
22 
23    .location-detail { 
24        padding: 15px; 
25
26 
27    .location-image { 
28        object-fit: cover; 
29        height: 250px; 
30        width: 100%; 
31
32</style> 
33 
34<#if !entries?has_content> 
35  	<div class="alert alert-info"> 
36		<@liferay_ui["message"] key="there-are-no-results" /> 
37    </div> 
38</#if> 
39<div class="row"> 
40    <#list entries as entry> 
41        <#assign 
42        assetRenderer = entry.getAssetRenderer() 
43        entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 
44        journalArticle = assetRenderer.getAssetObject() 
45        document = saxReaderUtil.read(journalArticle.getContent()) 
46        rootElement = document.getRootElement() 
47        /> 
48        <#list entry.getCategories() as category> 
49            <#assign currentCategory = category > 
50            <#break> 
51        </#list> 
52 
53        <#list rootElement.elements() as dynamicElement > 
54            <#if dynamicElement.attributeValue("name") == "image_overview" > 
55                <#assign image = dynamicElement.element("dynamic-content").getData() > 
56            </#if> 
57            <#if dynamicElement.attributeValue("name") == "link_overview" > 
58                <@getLinkToPage dynamicElement ></@getLinkToPage> 
59            </#if> 
60            <#if dynamicElement.attributeValue("name") == "location_name" > 
61                <#assign locationName = dynamicElement.element("dynamic-content").getData() > 
62            </#if> 
63        </#list> 
64 
65        <#if image?has_content && link?has_content && currentCategory.getTitle(locale)?has_content > 
66            <div class="mt-list-item col-xs-12 col-md-6 col-lg-4" data-name="${currentCategory.getTitle(locale)}"> 
67                <a href="${link}" class="hays__r1__locations__list__item" data-city="${currentCategory.getTitle(locale)}"> 
68                    <div class="hays__r1__locations__list__item__location"> 
69                        <div class="hays__r1__locations__list__item__location__image"> 
70                            <img class="location-image" src="${image}"/> 
71                        </div> 
72                        <div class="location-detail"> 
73                            <div class="hays__r1__locations__list__item__headline">${locationName}</div> 
74                            <div class="hays__r1__locations__list__item__link"><@liferay.language key="location.overview.tiles.more"/> &nbsp; 
75                                <i class="icon-chevron-right hays__r1__locations__list__item__icon"></i> 
76                            </div> 
77                        </div> 
78                    </div> 
79                </a> 
80            </div> 
81        </#if> 
82    </#list> 
83</div> 
84<#macro getLinkToPage dynamicElement> 
85    <#assign urlObject = dynamicElement.element("dynamic-content").getData() /> 
86 
87<#-- split the string to just get the page layout id , groupID and if its a private layout--> 
88    <#list urlObject?split("@") as item> 
89        <#if item?has_content> 
90            <#if item_index == 0> 
91                <#assign linkPageId = item?number> 
92            </#if> 
93            <#if item_index == 1> 
94                <#if item == "private"> 
95                    <#assign linkPrivate = true> 
96                <#else> 
97                    <#assign linkPrivate = false> 
98                </#if> 
99            </#if> 
100            <#if item_index = 2> 
101                <#assign linkGroupId = item?number> 
102            </#if> 
103        </#if> 
104    </#list> 
105 
106<#-- get layout --> 
107    <#assign layoutLocalService = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"]> 
108    <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, linkPrivate, linkPageId)> 
109 
110<#-- get Friendly URL --> 
111    <#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]> 
112    <#assign link = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay)> 
113</#macro> 
114 
115<script type="text/javascript"> 
116    // Filter for select 
117    $("#hays__r1__locations__filter").change(function () { 
118        var selectedLocation = this.options[this.selectedIndex].value; 
119        if (selectedLocation === "" || selectedLocation === "all") { 
120            $('.mt-list-item').removeClass('hidden'); 
121        } else { 
122            $('.mt-list-item').addClass('hidden'); 
123            $('.mt-list-item[data-name="' + selectedLocation + '"]').removeClass('hidden'); 
124
125    }); 
126 
127    // Filter for typing 
128    $(document).ready(function () { 
129        $("body").on('keyup', '#hays__r1__locations__filter-selectized', function (e) { 
130            e.preventDefault(); 
131            var regEx = new RegExp($.map($(this).val().trim().split(' '), function (v) { 
132                return '(?=.*?' + v + ')'; 
133            }).join(''), 'i'); 
134 
135            $('.mt-list-item').hide().filter(function () { 
136                return regEx.exec($(this).text()); 
137            }).show(); 
138        }); 
139    }); 
140</script>