Investor Relations

Investor Relations

Asset Publisher

Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> friendlyUrl  [in template "10154#10192#907055" at line 37, column 44]

----
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: ${friendlyUrl}  [in template "10154#10192#907055" at line 37, column 42]
----
1<#if entries?has_content > 
2    <#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
3    <div class="row adt-result-row"> 
4        <#list entries as entry > 
5            <#assign renderer = entry.getAssetRenderer() /> 
6            <#assign className = renderer.getClassName() /> 
7     
8            <#-- Fetching the related article and parsing the content --> 
9            <#if "com.liferay.journal.model.JournalArticle" == className > 
10                <#assign journalArticle = renderer.getAssetObject() /> 
11                <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
12                <#assign rootElement = document.getRootElement() /> 
13 
14                <#-- first alternative --> 
15                <#list rootElement.elements() as dynamicElement > 
16                    <#if "detail_page" == dynamicElement.attributeValue("name") > 
17                        <#list dynamicElement.elements() as dynamicContent > 
18                            <#assign layoutIdAsElementStr = dynamicContent.getData() /> 
19                            <#assign layoutId = layoutIdAsElementStr?split("@")[0] /> 
20                            <#if layoutId?has_content> 
21                                <#assign friendlyUrl = layoutLocalService.getLayout(groupId, false, layoutId?number).getFriendlyURL() /> 
22                            </#if> 
23                        </#list> 
24                  
25                    <#elseif "overview_titel" == dynamicElement.attributeValue("name") > 
26                        <#assign overviewTitel = dynamicElement.element("dynamic-content").getData() /> 
27                 
28                    <#elseif "overview_text" == dynamicElement.attributeValue("name") > 
29                        <#assign overviewText = dynamicElement.element("dynamic-content").getData() /> 
30                    </#if> 
31                </#list> 
32            </#if> 
33     
34            <div class="product-preview item col-xs-12 col-sm-6"> 
35    	        <div class="inner-product"> 
36    		        <h3 class="product-header"> 
37    			        <a href="${friendlyUrl}">${overviewTitel}</a> 
38    		        </h3> 
39 
40    		        <p>${overviewText}</p> 
41    		        <p class="product-button"> 
42			            <a aria-label="Details ${entry.getTitle(locale)}" class="btn btn-primary product-detail" href="${friendlyUrl}"> 
43                            Details 
44                        </a> 
45		            </p> 
46                </div> 
47            </div> 
48        </#list> 
49    </div> 
50</#if>