News

Zeitraum

Sortieren
Fehler bei der Verarbeitung der Vorlage.
Java method "com.liferay.dynamic.data.mapping.model.impl.DDMStructureImpl.getDDMFormFieldByFieldReference(String)" threw an exception when invoked on com.liferay.dynamic.data.mapping.model.impl.DDMStructureImpl object "{\"mvccVersion\": 173, \"ctCollectionId\": 0, \"uuid\": \"efe4bb69-42ea-e668-377b-4b686a479f52\", \"structureId\": 2729736, \"groupId\": 20123, \"companyId\": 20097, \"userId\": 42301, \"userName\": \"Test Test\", \"versionUserId\": 42301, \"versionUserName\": \"Nicandro Salgado\", \"createDate\": \"Fri Jan 19 12:25:53 GMT 2024\", \"modifiedDate\": \"Thu Nov 21 14:07:11 GMT 2024\", \"parentStructureId\": 0, \"classNameId\": 29901, \"structureKey\": \"NEWS_STRUCTURE\", \"version\": \"1.0\", \"name\": \"<?xml version='1.0' encoding='UTF-8'?><root available-locales='de_DE,' default-locale='de_DE'><Name language-id='de_DE'>News</Name></root>\", \"description\": \"\", \"definition\": \"{'definitionSchemaVersion':'2.0','availableLanguageIds':['de_DE'],'successPage':{'body':{},'title':{},'enabled':false},'defaultLanguageId':'de_DE','fields':[{'labelAtStructureLevel':true,'ddmDataProviderInstanceId':[],'predefinedValue':{},'tooltip':{'de_DE':''},'requireConfirmation':false,'type':'text','showLabel':true,'required':true,'displayStyle':'singleline','ddmDataProviderInstanceOutput':[],'repeatable':false,'nativeField':false,'confirmationLabel':{'de_DE':''},'fieldReference':'headline','tip':{'de_DE':''},'placeholder':{'de_DE':'Überschrift'},'direction':['vertical'],'hideField':false,'confirmationErrorMessage':{'de_DE':''},'autocomplete':false,'dataType':'string','readOnly':false,'label':{'de_DE':'Headline'},'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','name':'Text13381747','localizable':true,'dataSourceType':''},{'labelAtStructureLevel':true,'dataType':'date','predefinedValue':{},'readOnly':false,'label':{'de_DE':'Datum'},'type':'date','showLabel':true,'required':true,'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','repeatable':false,'name':'Date21222800','nativeField':false,'localizable':false,'fieldReference':'date','tip':{'de_DE':''}},{'labelAtStructureLevel':true,'dataType':'string','predefinedValue':{},'readOnly':false,'label':{'de_DE':'Icon-Farbe'},'type':'radio','showLabel':true,'required':false,'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','inline':false,'repeatable':false,'name':'Radio60016135','options':[{'reference':'iconGray','label':{'de_DE':'Grau'},'value':'Option09865725'},{'reference':'iconWhite','label':{'de_DE':'Weiß'},'value':'Option00553706'}],'nativeField':false,'localizable':true,'fieldReference':'iconColor','tip':{'de_DE':''}},{'dataType':'image','predefinedValue':{},'readOnly':false,'label':{'de_DE':'Bild'},'type':'image','showLabel':true,'required':true,'indexType':'text','fieldNamespace':'','visibilityExpression':'','repeatable':false,'requiredDescription':true,'name':'Image72569076','localizable':true,'fieldReference':'image','tip':{'de_DE':''}},{'labelAtStructureLevel':true,'predefinedValue':{'de_DE':''},'tooltip':{'de_DE':''},'requireConfirmation':false,'type':'text','showLabel':true,'required':false,'displayStyle':'singleline','requiredErrorMessage':{'de_DE':''},'objectFieldName':'','repeatable':false,'nativeField':false,'confirmationLabel':{'de_DE':'Copyright'},'fieldReference':'copyright','tip':{'de_DE':''},'placeholder':{'de_DE':''},'direction':['vertical'],'hideField':false,'confirmationErrorMessage':{'de_DE':''},'dataType':'string','readOnly':false,'label':{'de_DE':'Copyright'},'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','name':'Text01953737','localizable':true},{'labelAtStructureLevel':true,'ddmDataProviderInstanceId':[],'predefinedValue':{'de_DE':''},'tooltip':{'de_DE':''},'requireConfirmation':false,'type':'text','showLabel':true,'required':true,'displayStyle':'multiline','requiredErrorMessage':{'de_DE':''},'objectFieldName':'','ddmDataProviderInstanceOutput':[],'repeatable':false,'options':[{'reference':'Option20228812','label':{'de_DE':'Option'},'value':'Option20228812'}],'nativeField':false,'confirmationLabel':{'de_DE':''},'fieldReference':'teaserText','tip':{'de_DE':''},'placeholder':{'de_DE':''},'htmlAutocompleteAttribute':'','direction':['vertical'],'hideField':false,'confirmationErrorMessage':{'de_DE':''},'autocomplete':false,'dataType':'string','readOnly':false,'label':{'de_DE':'Teaser Text'},'indexType':'text','fieldNamespace':'','visibilityExpression':'','name':'Text60750228','localizable':true,'dataSourceType':'manual'},{'dataType':'string','predefinedValue':{},'readOnly':false,'label':{'de_DE':'Textbody'},'type':'rich_text','showLabel':true,'required':true,'indexType':'text','fieldNamespace':'','visibilityExpression':'','repeatable':false,'name':'RichText00418370','localizable':true,'fieldReference':'textbody','tip':{'de_DE':''}},{'labelAtStructureLevel':true,'ddmDataProviderInstanceId':[],'predefinedValue':{},'tooltip':{'de_DE':''},'requireConfirmation':false,'type':'text','showLabel':true,'required':false,'displayStyle':'singleline','ddmDataProviderInstanceOutput':[],'repeatable':false,'nativeField':false,'confirmationLabel':{'de_DE':''},'fieldReference':'newsLink','tip':{'de_DE':''},'placeholder':{'de_DE':''},'direction':['vertical'],'hideField':false,'confirmationErrorMessage':{'de_DE':''},'autocomplete':false,'dataType':'string','readOnly':false,'label':{'de_DE':'News Link'},'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','name':'Text40489897','localizable':true,'dataSourceType':''},{'labelAtStructureLevel':true,'ddmDataProviderInstanceId':[],'predefinedValue':{'de_DE':'[]'},'type':'select','showLabel':true,'required':false,'requiredErrorMessage':{'de_DE':''},'objectFieldName':'','alphabeticalOrder':false,'ddmDataProviderInstanceOutput':[],'repeatable':false,'options':[{'reference':'dsv-icon-general','label':{'de_DE':'general'},'value':'Option29298980'},{'reference':'dsv-icon-pin-on-map','label':{'de_DE':'pin-on-map'},'value':'Option11391401'},{'reference':'dsv-icon-calendar','label':{'de_DE':'calendar'},'value':'Option95116750'},{'reference':'dsv-icon-result','label':{'de_DE':'result'},'value':'Option66103084'},{'reference':'dsv-icon-races','label':{'de_DE':'races'},'value':'Option44003823'},{'reference':'dsv-icon-facebook','label':{'de_DE':'facebook'},'value':'Option88967743'},{'reference':'dsv-icon-instagram','label':{'de_DE':'instagram'},'value':'Option03326456'},{'reference':'dsv-icon-youtube','label':{'de_DE':'youtube'},'value':'Option42058201'},{'reference':'dsv-icon-twitter','label':{'de_DE':'twitter'},'value':'Option04347635'},{'reference':'dsv-icon-tiktok','label':{'de_DE':'tiktok'},'value':'Option76427760'},{'reference':'dsv-icon-skisprung1','label':{'de_DE':'skisprung'},'value':'Option23735971'},{'reference':'dsv-icon-skicross1','label':{'de_DE':'skicross'},'value':'Option67690898'},{'reference':'dsv-icon-langlauf1','label':{'de_DE':'langlauf'},'value':'Option94963882'},{'reference':'dsv-icon-freestyle1','label':{'de_DE':'freestyle'},'value':'Option07855802'},{'reference':'dsv-icon-ski-alpin1','label':{'de_DE':'ski-alpin'},'value':'Option27579464'},{'reference':'dsv-icon-nordische-kombination1','label':{'de_DE':'nordische-kombination'},'value':'Option76585872'},{'reference':'dsv-icon-biathlon1','label':{'de_DE':'biathlon'},'value':'Option78271891'},{'reference':'dsv-icon-aerials','label':{'de_DE':'aerials'},'value':'Option34886089'},{'reference':'dsv-icon-allgemein','label':{'de_DE':'allgemein'},'value':'Option36322819'},{'reference':'dsv-icon-berge','label':{'de_DE':'berge'},'value':'Option80505297'},{'reference':'dsv-icon-buckel','label':{'de_DE':'buckel'},'value':'Option57467205'},{'reference':'dsv-icon-freestyle1','label':{'de_DE':'freestyle-freeski'},'value':'Option18963991'},{'reference':'dsv-icon-grasski','label':{'de_DE':'grasski'},'value':'Option57759383'},{'reference':'dsv-icon-magazin','label':{'de_DE':'magazin'},'value':'Option46204595'},{'reference':'dsv-icon-nachhaltigkeit','label':{'de_DE':'nachhaltigkeit'},'value':'Option29403216'},{'reference':'dsv-icon-nordic-walking','label':{'de_DE':'nordic-walking'},'value':'Option08110724'},{'reference':'dsv-icon-rollski-nordisch','label':{'de_DE':'rollski-nordisch'},'value':'Option66131749'},{'reference':'dsv-icon-shop','label':{'de_DE':'shop'},'value':'Option81111502'},{'reference':'dsv-icon-short-carver','label':{'de_DE':'short-carver'},'value':'Option09318652'},{'reference':'dsv-icon-ski-inline','label':{'de_DE':'ski-inline'},'value':'Option22039062'},{'reference':'dsv-icon-skitour','label':{'de_DE':'skitour'},'value':'Option12517945'},{'reference':'dsv-icon-snowboard','label':{'de_DE':'snowboard'},'value':'Option34722420'},{'reference':'dsv-icon-speedski','label':{'de_DE':'speedski'},'value':'Option78421685'},{'reference':'dsv-icon-team','label':{'de_DE':'team'},'value':'Option65248306'},{'reference':'dsv-icon-telemark','label':{'de_DE':'telemark'},'value':'Option72362893'},{'reference':'dsv-icon-ticket','label':{'de_DE':'ticket'},'value':'Option45033393'}],'nativeField':false,'fieldReference':'icon','tip':{'de_DE':''},'dataType':'string','multiple':false,'readOnly':false,'label':{'de_DE':'Icon'},'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','name':'Select80191744','localizable':false,'dataSourceType':['manual']},{'labelAtStructureLevel':true,'ddmStructureLayoutId':'','predefinedValue':{},'ddmStructureId':'','upgradedStructure':false,'readOnly':false,'label':{'de_DE':'Fields Group'},'type':'fieldset','rows':[{'columns':[{'size':12,'fields':['Text43577375']}]},{'columns':[{'size':12,'fields':['DocumentLibrary64572710']}]}],'collapsible':false,'showLabel':true,'required':false,'nestedFields':[{'labelAtStructureLevel':true,'ddmDataProviderInstanceId':[],'predefinedValue':{},'tooltip':{'de_DE':''},'requireConfirmation':false,'type':'text','showLabel':true,'required':false,'displayStyle':'singleline','ddmDataProviderInstanceOutput':[],'repeatable':false,'nativeField':false,'confirmationLabel':{'de_DE':''},'fieldReference':'text','tip':{'de_DE':''},'placeholder':{'de_DE':''},'direction':['vertical'],'hideField':false,'confirmationErrorMessage':{'de_DE':''},'autocomplete':false,'dataType':'string','readOnly':false,'label':{'de_DE':'Text'},'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','name':'Text43577375','localizable':true,'dataSourceType':''},{'labelAtStructureLevel':true,'dataType':'document-library','predefinedValue':{},'readOnly':false,'label':{'de_DE':'Anhang'},'type':'document_library','showLabel':true,'required':false,'indexType':'keyword','fieldNamespace':'','visibilityExpression':'','repeatable':false,'allowGuestUsers':false,'name':'DocumentLibrary64572710','localizable':true,'fieldReference':'attachement','tip':{'de_DE':''}}],'normalizedStructure':false,'repeatable':true,'name':'Fieldset34951079','localizable':false,'fieldReference':'downloads','tip':{}}]}\", \"storageType\": \"default\", \"type\": 0, \"lastPublishDate\": null}"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #return docXml.valueOf("//dynamic-ele...  [in template "20097#20123#2116872" in function "getValue" at line 6, column 5]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") 
2         dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") 
3 /> 
4 
5<#function getValue name > 
6    <#return docXml.valueOf("//dynamic-element[@name='${ddmStructure.getDDMFormFieldByFieldReference(name).getName()}']/dynamic-content/text()") /> 
7</#function> 
8 
9<#if entries?has_content> 
10    <div class="dsv-tile-grid"> 
11        <#list entries as entry> 
12            <#if entry.getClassName()?ends_with("JournalArticle")> 
13                <#assign article = journalArticleLocalService.getLatestArticle(entry.getClassPK()) 
14                         ddmStructure = article.getDDMStructure() 
15                         content = article.getContentByLocale(themeDisplay.getLanguageId()) 
16                         docXml = saxReaderUtil.read(content) 
17                         startDate_Data = getValue('date') 
18                         hasValidDate = startDate_Data?has_content && startDate_Data != 'null' 
19                         jsonImage = jsonFactoryUtil.createJSONObject(getValue("image")) 
20                         fieldReference = ddmStructure.getDDMFormFieldByFieldReference('icon') 
21                         iconClass = 'general' 
22                         imageId = jsonImage.getString("fileEntryId")?number 
23                         image = dlFileEntryLocalService.getDLFileEntry(imageId) 
24                /> 
25 
26                <#if hasValidDate> 
27                    <#assign startDate_DateObj = dateUtil.parseDate("yyyy-MM-dd", startDate_Data, locale) 
28                             parsedStartDate = dateUtil.getDate(startDate_DateObj, "dd.MMM yyyy", locale) 
29                    /> 
30                </#if> 
31 
32                <a class="dsv-tile" href="${entry.getViewURL()}"> 
33                    <div class="position-relative align-items-center"> 
34                        <#if jsonImage.getString("url")?has_content> 
35                            <picture> 
36                                <source media="(max-width:639px)" srcset="/o/adaptive-media/image/${imageId}/fullwidth-639x0/${image.getFileName()}"> 
37                                <img src="/o/adaptive-media/image/${imageId}/teaser-500x0/${image.getFileName()}" class="overlay-image" alt="${jsonImage.getString("alt")!""}"> 
38                            </picture> 
39                             
40                            <#if (getValue('icon')?has_content)> 
41                                <#assign option = fieldReference.getDDMFormFieldOptions().getOptions()[getValue('icon')] 
42                                iconClass = option.getString(option.getDefaultLocale()) /> 
43                            </#if> 
44                            <i class="dsv-icon dsv-icon-${iconClass} on-image-left-top dsv-icon--white dsv-icon--48"></i> 
45                        <#else> 
46                            <i class="d-lg-flex d-none bg-lighter overlay-image align-items-baseline pt-5 justify-content-center dsv-icon dsv-icon--132 dsv-icon--red dsv-icon-races"></i> 
47                            <i class="d-flex d-lg-none bg-lighter overlay-image align-items-baseline pt-4 justify-content-center dsv-icon dsv-icon--80 dsv-icon--red dsv-icon-races"></i> 
48                        </#if> 
49                    </div> 
50                    <div class="dsv-tile__content"> 
51                        <#if hasValidDate> 
52                            <p class="text-4">${parsedStartDate}</p> 
53                        </#if> 
54                            <p class="font-weight-semi-bold text-7 text-uppercase">${getValue("headline")}</p> 
55                        <#if getValue("teaser")?has_content> 
56                            <p class="text-wrap text-weight-normal text-4 cut-text-description">${getValue("teaser")?string?replace('<[^>]+>', '', 'r')}</p> 
57                        </#if> 
58                    </div> 
59                </a> 
60            </#if> 
61        </#list> 
62    </div> 
63</#if>