News & Events
Fehler bei der Verarbeitung der Vorlage.
Java method "com.sun.proxy.$Proxy156.getFileEntry(long)" threw an exception when invoked on com.sun.proxy.$Proxy156 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@291ea31b"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
	- Failed at: #local dlFileEntry = dlFileEntryServi...  [in template "20101#20127#101324" in function "get_image_url" at line 13, column 9]
	- Reached through: ${get_image_url(coverImageMap)}  [in template "20101#20127#101324" at line 82, column 47]
----
1<#function get_string_value rootElement attrName> 
2    <#local xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='" + attrName + "']")> 
3    <#local node = xPathSelector.selectSingleNode(rootElement)!""> 
4    <#if node?has_content> 
5        <#return node.getStringValue()?trim> 
6    <#else> 
7        <#return ""> 
8    </#if> 
9</#function> 
10<#function get_image_url image> 
11    <#if serviceLocator??> 
12        <#local dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
13        <#local dlFileEntry = dlFileEntryService.getFileEntry(image.fileEntryId?number)> 
14        <#return "/documents/" + dlFileEntry.getRepositoryId() + "/" + dlFileEntry.getFolderId() + "/" + dlFileEntry.getFileName() + "/" + dlFileEntry.getUuid()> 
15    <#else> 
16        <#return ""> 
17    </#if> 
18</#function> 
19<#function get_view_url entry> 
20    <#local viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, false) /> 
21    <!-- Remove version number if view in context https://liferay.dev/forums/-/message_boards/message/114610985 --> 
22    <#local viewInContext = !stringUtil.equals(assetLinkBehavior, "showFullContent") /> 
23    <#if viewInContext> 
24        <#return renderer.getURLViewInContext(renderRequest, renderResponse, viewURL)?keep_before_last('/') + '?redirect=' + htmlUtil.escapeURL( themeDisplay.getURLCurrent() )> 
25    <#else> 
26        <#return viewURL> 
27    </#if> 
28</#function> 
29<#if entries?has_content> 
30    <#list entries as curEntry> 
31        <#assign renderer = curEntry.getAssetRenderer() /> 
32        <#assign className = renderer.getClassName() /> 
33        <#if className == "com.liferay.journal.model.JournalArticle"> 
34            <#assign journalArticle = renderer.getArticle() /> 
35            <#assign urlTitle = journalArticle.getUrlTitle() /> 
36            <#assign ddmStructure = journalArticle.getDDMStructure() /> 
37            <#assign structureName = ddmStructure.getName(locale) /> 
38            <#assign articleType = "NEWS" /> 
39            <#if structureName?contains("Event")> 
40                <#assign articleType = "EVENT" /> 
41            </#if> 
42            <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) /> 
43            <#assign rootElement = document.getRootElement() /> 
44            <#assign title = curEntry.getTitle(locale)> 
45            <#assign subtitle = get_string_value(rootElement, "subtitle")> 
46            <#assign abstract = get_string_value(rootElement, "abstract")> 
47            <#assign content = get_string_value(rootElement, "content")> 
48            <#assign eventDate = get_string_value(rootElement, "eventDate")> 
49            <#assign openingTimes = get_string_value(rootElement, "openingTimes")> 
50            <#assign smallImage = get_string_value(rootElement, "smallImage")> 
51            <#assign coverImage = get_string_value(rootElement, "coverImage")> 
52            <#if request.getRequestURL().indexOf("liferay.streamnow.ch") &gt;= 0> 
53                <#assign viewURL = get_view_url(curEntry)> 
54            <#else> 
55                <#assign viewURL = "/news_events/${urlTitle}"> 
56            </#if> 
57            <div class="col-lg-4"> 
58                <div class="card"> 
59                    <#if smallImage?? && smallImage?has_content> 
60 
61                        <p style="display: none;"> 
62                            smallImage: ${smallImage} 
63                        </p> 
64 
65                        <#assign smallImageMap = smallImage?eval> 
66                        <div class="card-header"> 
67                            <div class="aspect-ratio aspect-ratio-8-to-3"> 
68                                <a href="${viewURL}"> 
69                                    <img alt="${smallImageMap.alt}" 
70                                         class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" 
71                                         src="${get_image_url(smallImageMap)}"/> 
72                                </a> 
73                            </div> 
74                        </div> 
75 
76                    <#elseif coverImage?? && coverImage?has_content> 
77                        <#assign coverImageMap = coverImage?eval> 
78                        <div class="card-header"> 
79                            <div class="aspect-ratio aspect-ratio-8-to-3"> 
80                                <a href="${viewURL}"> 
81                                    <img class="aspect-ratio-item-center-middle aspect-ratio-item-fluid" 
82                                         src="${get_image_url(coverImageMap)}"/> 
83                                </a> 
84                            </div> 
85                        </div> 
86                    </#if> 
87                    <div class="card-body widget-topbar"> 
88                        <div class="autofit-row card-type"> 
89                            ${articleType} 
90                        </div> 
91                        <div class="autofit-row card-title"> 
92                            <div class="autofit-col autofit-col-expand"> 
93                                <h3 class="title"> 
94                                    <a class="title-link" href="${viewURL}">${title}</a> 
95                                </h3> 
96                            </div> 
97                        </div> 
98                        <#if subtitle?? && subtitle?has_content> 
99                            <div class="autofit-row widget-metadata"> 
100                                <div class="autofit-col autofit-col-expand"> 
101                                    <div class="autofit-row"> 
102                                        <div class="autofit-col autofit-col-expand"> 
103                                            <div class="sub-title">${subtitle}</div> 
104                                        </div> 
105                                    </div> 
106                                </div> 
107                            </div> 
108                        </#if> 
109                        <#if abstract?? && abstract?has_content> 
110                            <p class="widget-resume">${abstract}</p> 
111                        <#else> 
112                            <#if smallImage?? && smallImage?has_content> 
113                                <p class="widget-resume">${stringUtil.shorten(htmlUtil.stripHtml(content), 150)}</p> 
114                            <#else> 
115                                <p class="widget-resume">${stringUtil.shorten(htmlUtil.stripHtml(content), 400)}</p> 
116                            </#if> 
117                        </#if> 
118                        <div class="autofit-row widget-metadata"> 
119                            <div class="autofit-col autofit-col-expand"> 
120                                <div class="autofit-row"> 
121                                    <div class="autofit-col autofit-col-expand"> 
122                                        <div class="display-date"> 
123                                            <#if eventDate?? && eventDate?has_content> 
124                                                ${eventDate} 
125                                            <#else> 
126                                                ${renderer.getDisplayDate()?date?string.long} 
127                                            </#if> 
128                                        </div> 
129                                        <#if openingTimes?? && openingTimes?has_content> 
130                                            <div class="event-opening-times"> 
131                                                ${openingTimes} 
132                                            </div> 
133                                        </#if> 
134                                    </div> 
135                                </div> 
136                            </div> 
137                        </div> 
138                    </div> 
139                </div> 
140            </div> 
141        </#if> 
142    </#list> 
143</#if> 

Wir verwenden Cookies, um die bestmögliche Benutzererfahrung zu ermöglichen. Durch die Nutzung unserer Website erklären Sie sich damit einverstanden, dass wir Cookies auf Ihrem Gerät speichern. Weitere Informationen

Kontaktieren Sie uns

Sie haben eine Frage oder ein Anliegen? Dann kontaktieren Sie uns via folgendem Formular. Wir werden uns so schnell wie möglich um Ihre Anfrage kümmern.

*Pflichtfelder

Kontakt

Location
Kalanderpl. 1, 8045 Zürich