Willkommen bei Eurostat
The home of high-quality statistics and data on Europe

EU Schlüsselindikatoren


Erkunden Sie unseren Daten und Tools


Direkter Zugang zu


Im Fokus


Asset-Herausgeber

Fehler bei der Verarbeitung der Vorlage.
The following has evaluated to null or missing:
==> imageJson.groupId  [in template "10159#10199#21311566" at line 24, column 105]

----
Tip: It's the step after the last dot 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 imageEntry = PortletFileRepos...  [in template "10159#10199#21311566" at line 24, column 21]
----
1<#assign groupLocalService=serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
2<#assign classNameLocalService=serviceLocator.findService("com.liferay.portal.kernel.service.ClassNameLocalService") /> 
3<#assign globalGroupId=groupLocalService.getCompanyGroup(company.getCompanyId()).groupId /> 
4<#assign classNameId=classNameLocalService.getClassNameId("com.liferay.asset.kernel.model.AssetEntry") /> 
5<#include "_TEMPLATE_CONTEXT_/" +company.getCompanyId()+"/"+globalGroupId+"/"+classNameId+"/ESTAT-GLOBAL-LIB" /> 
6 
7<#if entries?has_content> 
8    <#assign ddmStructureKeyContentItemInFocus = "CONTENT-ITEM-IN-FOCUS" /> 
9    <#assign structureContentItemInFocus = DDMStructureService.getStructure(globalSiteId, classnameIdPublication, ddmStructureKeyContentItemInFocus) /> 
10    <#assign ddmStructureFormFieldTypeOptions = structureContentItemInFocus.getDDMFormField('type').getDDMFormFieldOptions() /> 
11    <#assign ddmStructureFormFieldStatusOptions = structureContentItemInFocus.getDDMFormField('status').getDDMFormFieldOptions() /> 
12 
13    <#assign contentItems = [] /> 
14    <#list entries as entry> 
15	    <#if entry.getAssetRenderer()??>         
16    	    <#assign assetRenderer = entry.getAssetRenderer() /> 
17            <#if assetRenderer.getArticle().getDDMStructureKey()=='CONTENT-ITEM-IN-FOCUS'> 
18                <#assign ddmFormFieldValuesMap = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap() /> 
19                <#assign title = entry.getTitle(locale) /> 
20                <#assign description = ddmFormFieldValuesMap['description'][0].getValue().getString(locale) /> 
21                <#assign image = ddmFormFieldValuesMap['image'][0].getValue().getString(locale) /> 
22                <#if image?has_content> 
23                    <#assign imageJson = image?eval /> 
24                    <#assign imageEntry = PortletFileRepositoryUtil.getPortletFileEntry(imageJson.uuid, imageJson.groupId?number) /> 
25                    <#assign imageUrl = DLURLHelper.getPreviewURL(imageEntry, imageEntry.getLatestFileVersion(), themeDisplay, "") />      
26                    <#assign imageCredit = getCopyright(image) /> 
27                <#else> 
28                    <#assign imageUrl = "" />      
29                    <#assign imageCredit = "" /> 
30                </#if> 
31                <#assign link = ddmFormFieldValuesMap['link'][0].getValue().getString(locale) /> 
32                <#if !(link?? && link?has_content) > 
33                    <#assign link = ddmFormFieldValuesMap['link'][0].getValue().getString(locale.getDefault()) /> 
34                </#if> 
35                <#assign labelType = "" /> 
36                <#assign labelTypeValue = ddmFormFieldValuesMap['type'][0].getValue().getString(locale)?eval?first!'none' /> 
37                <#if labelTypeValue != "none" && ddmStructureFormFieldTypeOptions.getOptionsValues()?seq_contains(labelTypeValue) > 
38                    <#assign labelType = ddmStructureFormFieldTypeOptions.getOptionLabels(labelTypeValue).getString(locale) /> 
39                </#if> 
40                <#assign labelStatus = "" /> 
41                <#assign labelStatusValue = ddmFormFieldValuesMap['status'][0].getValue().getString(locale)?eval?first!'none' /> 
42                <#if labelStatusValue != "none" && ddmStructureFormFieldStatusOptions.getOptionsValues()?seq_contains(labelStatusValue) > 
43                    <#assign labelStatus = ddmStructureFormFieldStatusOptions.getOptionLabels(labelStatusValue).getString(locale) /> 
44                </#if> 
45                <#assign contentItem = {"title" : title, "description" : description, "imageUrl" : imageUrl, "imageCredit" : imageCredit,  
46                    "link" : link, "labelType" : labelType, "labelStatus" : labelStatus} /> 
47                <#assign contentItems = contentItems + [contentItem] /> 
48            </#if> 
49        </#if> 
50    </#list> 
51    <#if contentItems?has_content> 
52        <div class="estat-grid estat-lg-col-2"> 
53            <#list contentItems as contentItem> 
54                <article class="ecl-content-item"> 
55                    <div class="estat-content-item__picture-wrapper ecl-u-mr-none ecl-u-mr-m-m ecl-u-mb-m ecl-u-mb-m-none ecl-u-shadow-1"> 
56                        <picture class="ecl-picture ecl-content-item__picture ecl-content-item__picture--left estat-content-item__picture" data-ecl-picture-link> 
57                            <source srcset="${contentItem.imageUrl}" media="(min-width: 480px)" type="image/jpg"> 
58                            <img class="ecl-content-item__image estat-content-item__image" src="${contentItem.imageUrl}" alt="${contentItem.title?replace('\x00A0', ' ')}"> 
59                            <#if contentItem.imageCredit?has_content > 
60                                <div class="estat-image-credit">${contentItem.imageCredit}</div> 
61                            </#if> 
62                        </picture> 
63                    </div> 
64                    <div class="ecl-content-block ecl-content-item__content-block" data-ecl-auto-init="ContentBlock" data-ecl-content-block> 
65                        <ul class="ecl-content-block__label-container" aria-label="Labels"> 
66                            <#if contentItem.labelType?has_content> 
67                                <li class="ecl-content-block__label-item"><span class="ecl-label ecl-label--highlight ecl-u-type-xs">${contentItem.labelType}</span></li> 
68                            </#if> 
69                            <#if contentItem.labelStatus?has_content> 
70                                <li class="ecl-content-block__label-item"><span class="ecl-label ecl-label--high ecl-u-type-xs">${contentItem.labelStatus}</span></li> 
71                            </#if> 
72                        </ul> 
73                        <div class="ecl-content-block__title" data-ecl-title-link> 
74                            <a href="${contentItem.link}" class="ecl-link ecl-link--standalone">${contentItem.title}</a> 
75                        </div> 
76                        <div class="ecl-content-block__description estat-line-clamp-3">${contentItem.description}</div> 
77                    </div> 
78                </article> 
79            </#list> 
80        </div> 
81    </#if> 
82</#if>