Events

Search Results Filters

Search Results

An error occurred while processing the template.
The following has evaluated to null or missing:
==> docXml.selectSingleNode("/root/dynamic-element[@name='eventEndDate']/dynamic-content/text()")  [in template "ASSET_ENTRY_MACROS" at line 201, column 9]

----
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 eventEndDateAsString = docXml...  [in template "ASSET_ENTRY_MACROS" in function "isUpcomingEvent" at line 200, column 9]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
3<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
4<#assign classNameLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ClassNameLocalService") /> 
5 
6<#assign globalGroup = groupLocalService.getFriendlyURLGroup(companyId, "/global")> 
7<#assign destMacroClassId = classNameLocalService.getClassNameId("com.liferay.asset.kernel.model.AssetEntry")> 
8<#include "_TEMPLATE_CONTEXT_/${companyId}/${globalGroup.groupId}/${destMacroClassId}/ASSET_ENTRY_MACROS" /> 
9 
10<#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"]/> 
11 
12<#assign ddmTemplateKey = 'EVENT_ROW'> 
13 
14<#assign portletRequestModel = objectUtil("com.liferay.portal.kernel.portlet.PortletRequestModel", renderRequest, renderResponse) /> 
15 
16<div class="event-row-results generic-container container"> 
17    <#assign showAssetTitle = themeDisplay.getPortletDisplay().getPortletSetup().getValue("portletSetupUseCustomTitle", "false") /> 
18 
19    <#if showAssetTitle == "true" > 
20        <div class="adt-title"> 
21            <div class="row"> 
22                <div class="col-md-4 offset-md-4"> 
23                    <h2 class="title-underline mt-3 mb-3">${htmlUtil.escape(themeDisplay.getPortletDisplay().getTitle())} </h2> 
24                </div> 
25            </div> 
26        </div> 
27    </#if> 
28 
29    <div class="container"> 
30        <#if entries?hasContent> 
31            <#assign upcomingEvents = [] /> 
32            <#assign pastEvents = [] /> 
33 
34            <#list entries as entry> 
35                <#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(), entry.getClassPK()) /> 
36 
37                <#if isUpcomingEvent(assetEntry)> 
38                    <#assign upcomingEvents = upcomingEvents + [entry] /> 
39                <#else > 
40                    <#assign pastEvents = pastEvents + [entry] /> 
41                </#if> 
42            </#list> 
43 
44            <#if (upcomingEvents?size > 0)> 
45                <@renderEntries upcomingEvents?reverse /> 
46            </#if> 
47 
48            <#if (pastEvents?size > 0)> 
49                <#if (upcomingEvents?size > 0)> 
50                    <h2 class="mt-3 mb-3"><@liferay.language key="past-events" /></h2> 
51                </#if> 
52                <@renderEntries pastEvents /> 
53            </#if> 
54        <#else> 
55            <div class="no-results"><@liferay.language key="no-results" /></div> 
56        </#if> 
57    </div> 
58</div> 
59 
60<#macro renderEntries entries> 
61    <#list entries as entry> 
62        <#if !entry.isTemporarilyUnavailable()> 
63            <div class="search-results-row row justify-content-center"> 
64                <#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(), entry.getClassPK()) /> 
65                <#assign article = assetEntry.getAssetRenderer().getArticle() > 
66                <#assign unused = renderRequest.setAttribute("viewURL", entry.getViewURL()) /> 
67                <#assign content = journalArticleLocalService.getArticleContent(article.getGroupId(), article.getArticleId(), 
68                "VIEW", ddmTemplateKey, themeDisplay.getLanguageId(), portletRequestModel, themeDisplay)> 
69                ${content} 
70            </div> 
71        <#else> 
72            <div class="autofit-col"> 
73                <div class="alert alert-danger"> 
74                    <@liferay.language_format 
75                    arguments="result" 
76                    key="is-temporarily-unavailable" 
77                    /> 
78                </div> 
79            </div> 
80        </#if> 
81    </#list> 
82</#macro> 

Search Results Sort