An error occurred while processing the template.
The following has evaluated to null or missing:
==> entry.getValues [in template "39744079116734#20120#104952" at line 192, column 19]
----
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 values = entry.getValues()!{} [in template "39744079116734#20120#104952" at line 192, column 1]
----
1<#-- <#attempt> -->
2<#list entries as entry>
3 ${entry}
4</#list>
5 <#setting locale = 'nl_NL'>
6 <#setting date_format= "yyyy-MM-dd"/>
7
8<#if layout.isPublicLayout()>
9 <#assign layoutType = "/web" />
10 <#assign layoutTypeBool = false />
11<#else>
12 <#assign layoutType = "/group" />
13 <#assign layoutTypeBool = true />
14</#if>
15
16<style type="text/css">
17
18
19</style>
20
21<#assign roleLocalServiceUtil=staticUtil['com.liferay.portal.kernel.service.RoleLocalServiceUtil'] />
22<#assign roles="" />
23<#list roleLocalServiceUtil.getUserGroupRoles(themeDisplay.getUserId(), themeDisplay.getScopeGroupId()) as role>
24 <#assign roles +="${role.name}" />
25</#list>
26<#assign
27 permCheck=themeDisplay.getPermissionChecker()
28 is_omniAdmin=permCheck.isOmniadmin()
29 is_admin = permCheck.isGroupAdmin(themeDisplay.getSiteGroupId())
30/>
31
32
33<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
34
35
36<#assign groupId = themeDisplay.getScopeGroupId() />
37<#assign isPrivateLayout = true />
38<#assign layouts = LayoutLocalService.getLayouts(groupId, isPrivateLayout) />
39
40<#assign pageExists = false />
41<#list layouts as layout>
42 <#if layout.getName(locale) == "Activiteit aanmaken">
43 <#assign pageExists = true />
44 </#if>
45</#list>
46
47<#if pageExists>
48 <#assign activiteitUrl = "${themeDisplay.getURLPortal()}/group${themeDisplay.getScopeGroup().friendlyURL}/activiteit-aanmaken"/>
49<#else>
50 <#assign activiteitUrl = "${themeDisplay.getURLPortal()}/web${themeDisplay.getScopeGroup().friendlyURL}/activiteit-aanmaken"/>
51</#if>
52
53
54<div id="activiteitvragenContainer" class="main-container">
55
56 <h1 class="title titlet">Activiteit overzicht</h1>
57
58 <div class="filter-create-Container">
59
60 <div class="categoriesFilter clearfix">
61 <#-- themagroepenFilter -->
62
63
64 <#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
65 <#assign themagroepen = AssetCategoryLocalService.getVocabularyRootCategories(1294818, 0, 10,null)?filter(cat -> cat.vocabularyId == 1294818)?reverse />
66
67 <#assign deselectCategory = "${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}${themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())}" />
68
69 <span class="mobileCategoryName" style="font-weight: bold;">Filteren: </span>
70
71 <#if themagroepen?has_content>
72
73 <#if themeDisplay.isSignedIn()>
74 <#if paramUtil.getString(request, "p_r_p_categoryName")?has_content>
75 <#assign mijnactiviteit = paramUtil.getString(request, "p_r_p_categoryName") />
76 <#else>
77 <#assign mijnactiviteit = ""/>
78 </#if>
79
80 <#if mijnactiviteit != "currentUserItems">
81 <a class="categoryItem" href="${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}${themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())}?p_r_p_categoryName=currentUserItems"> <span class="mobileCategoryName">Mijn activiteit</span></a>
82 <#else>
83 <a class="categoryItem" href="${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}${themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())}#activiteitvragenContainer"><span class="mobileCategoryName">Mijn activiteit <i class="icon-remove"></i></span></a>
84 </#if>
85 </#if>
86
87 <#list themagroepen as cat>
88 <#assign categoryURL = "${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}${themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())}/-/categories/${cat.categoryId}?p_r_p_categoryId=${cat.categoryId}" />
89 <#assign currentURL = "${themeDisplay.getURLPortal()}${themeDisplay.getURLCurrent()}" />
90 <#assign deselectCategory = "${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}${themeDisplay.getLayoutFriendlyURL(themeDisplay.getLayout())}" />
91 <#if currentURL?contains("parentCategoryId")>
92 <#assign currentCategory = paramUtil.getString(request, "parentCategoryId")?number />
93 </#if>
94
95 <#if currentURL?contains("categories/${cat.categoryId}")>
96 <#assign currentCategory = cat.categoryId />
97 <a class="categoryItem activeCategoryItem" href="${deselectCategory}">
98 <span class="mobileCategoryName">${cat.name}
99 <i class="icon-remove icon_remove"></i></span>
100 </a>
101 <#elseif !currentURL?contains("categories/${cat.categoryId}")>
102 <a class="categoryItem" href="${categoryURL}">
103 <span class="mobileCategoryName">${cat.name}</span>
104 </a>
105 </#if>
106 </#list>
107 </#if>
108 <#-- end themagroepenFilter -->
109 </div>
110
111 <div class="list_create_activiteit">
112
113 <#-- <#if themeDisplay.isSignedIn()>
114 <a class="mijnhlp-createhlp" href="${themeDisplay.getURLPortal()}${themeDisplay.getPathFriendlyURLPrivateGroup()}${themeDisplay.getScopeGroup().friendlyURL}/mijn-activiteitvragen">Mijn activiteitvragen</a>
115 <span class="streepje"> | </span>
116 </#if> -->
117
118 <#if roles?contains("Site Beheerder") || roles?contains("ContentCoordinator") || is_omniAdmin || is_admin>
119 <a class="mijnhlp-createhlp tertiary-bg-color secondary-text-color" href="${activiteitUrl}">Activiteit toevoegen </a>
120 </#if>
121
122 </div>
123
124 </div>
125
126
127<#assign
128 dlAppLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLAppLocalServiceUtil"]
129 dlUtil = staticUtil["com.liferay.document.library.kernel.util.DLUtil"]
130 />
131
132<#if paramUtil.getString(request, "p_r_p_categoryName")?has_content>
133 <#assign curCategory = paramUtil.getString(request, "p_r_p_categoryName") />
134
135 <#if curCategory == "currentUserItems">
136 <#assign collectionObjectList = collectionObjectList?filter(entry -> entry.getUserId() == themeDisplay.getUserId())?sort_by("createDate")?reverse />
137 <#else>
138 <#assign collectionObjectList = collectionObjectList?filter(entry -> entry.getAssetRenderer().getAssetObject().getValues()["Type"] = "${curCategory}")?sort_by("createDate")?reverse />
139 </#if>
140</#if>
141
142<#assign currentURL = "${themeDisplay.getURLPortal()}${themeDisplay.getURLCurrent()}" />
143
144<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
145
146<#assign activiteitDetaillayoutExists = false />
147<#list layouts as layout>
148 <#if layout.getName(locale) == "Activiteit detail">
149 <#assign activiteitDetaillayoutExists = true />
150 </#if>
151</#list>
152
153<#if activiteitDetaillayoutExists>
154
155 <#assign activiteitDetaillayout = LayoutLocalService.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), layoutTypeBool, "/activiteit-detail")/>
156 <#assign typeSettings = activiteitDetaillayout.typeSettings />
157 <#assign startIndex = typeSettings?index_of("INSTANCE_") />
158 <#if startIndex != -1>
159 <#-- Extract the instance ID from the string by cutting it off after 4 characters from the INSTANCE_ prefix -->
160 <#assign activiteitinstanceId = typeSettings?substring(startIndex + 9, startIndex + 9 + 4) />
161 <#else>
162 <#assign activiteitinstanceId = "ywsu" />
163 </#if>
164<#else>
165 <#assign activiteitinstanceId = "ywsu" />
166</#if>
167
168
169
170<#assign AssetCategoryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil'] />
171<#assign AssetVocabularyLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil'] />
172
173<#-- gecomment omdat ze niet nog niet bestaan
174<#assign Themagroepvocabulary = AssetVocabularyLocalServiceUtil.getGroupVocabulary(themeDisplay.getCompanyGroupId() ,'Themagroepen') />
175<#assign ThemagroepvocabularyId = Themagroepvocabulary.getVocabularyId() />
176-->
177<#assign
178 nowTime = (.now?long + 3600000)?number_to_datetime?time?string.iso?time.iso
179 nowDate = .now?date?string.iso?date.iso
180/>
181
182<#assign collectionObjectListActief1 = entries?filter(entry -> entry.getAssetRenderer().getAssetObject().getValues()["EindDatum"]?has_content) />
183
184<#assign collectionObjectListActief2 = collectionObjectListActief1?filter(entry -> entry.getAssetRenderer().getAssetObject().getValues()["EindDatum"]?date gte nowDate) />
185
186<#assign collectionObjectList = collectionObjectListActief2?filter(entry -> entry.getAssetRenderer().getAssetObject().getValues()["Status"] == "Gepubliceerd" || entry.getAssetRenderer().getAssetObject().getValues()["Status"] == "Geannuleerd") />
187
188 <div class="card_activiteitvraags row activiteit-row-lg">
189
190<#list entries as entry>
191
192<#assign values = entry.getValues()!{}>
193 <#assign objectId = entry.getObjectEntryId()!"" >
194 <#assign entryTitle = values.titel!"" >
195 <#assign omschrijving = values.omschrijving!"" >
196 <#assign status = values.status!"" >
197 <#assign afbId = values.activiteitAfbeelding >
198 <#assign beginDatum = values.beginDatumTijd!"" >
199
200
201 <#assign imageURL = "">
202 <#if afbId?has_content && afbId != 0>
203 <#assign fileEntry = DLAppLocalServiceUtil.getFileEntry(afbId)>
204 <#assign groupId = fileEntry.getGroupId()>
205 <#assign folderId = fileEntry.getFolderId()>
206 <#assign fileName = fileEntry.getTitle()?url("UTF-8")>
207 <#assign uuid = fileEntry.getUuid()>
208
209 <#assign baseURL = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + groupId + "/" + folderId + "/" + fileName + "/" + uuid>
210
211 <#assign imgUrl = baseURL + "?imagePreview=1">
212
213
214 </#if>
215
216
217
218
219
220<#assign className = entry.getClassName() />
221<#assign classPK = entry.getClassPK() />
222
223<#-- gecomment omdat ze niet nog niet bestaan
224<#assign getEntryThemagroepCat = AssetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle", getterUtil.getLong(classPK))?filter(cat -> cat.vocabularyId == ThemagroepvocabularyId) />
225-->
226
227 <div class="col-sm-6 card_activiteitvraag_container ">
228 <div class="card_activiteitvraag main-bg-color">
229 <a class=" activiteitAnchor" href="${themeDisplay.getURLPortal()}${layoutType}${themeDisplay.getScopeGroup().friendlyURL}/activiteit-detail/-/asset_publisher/${activiteitinstanceId}/content/${entryUrlTitle}/${entryGroupId}">
230 <div class="activiteitWrap">
231
232 <#if image?has_content>
233 <img class="activiteitImg" src="${imgUrl}">
234 </#if>
235
236 <div class="innerContent secondary-text-color">
237 <span class="beginDatum">${beginDatum?date?string["dd/MM/YYYY"]}</span>
238 <div class="title_icon_container">
239 <h2 class="card_activiteitvraag__title">${entryTitle}</h2>
240 </div>
241
242 <#-- gecomment omdat ze niet nog niet bestaan
243 <#if getEntryThemagroepCat?has_content>
244 <div class="themagroepContainer">
245 <h3 class="inhoudItem headers ">Themagroep: </h3>
246 <#list getEntryThemagroepCat as themagroep>
247 <p class=" inhoudItem paragraphs themagroep">${themagroep.name}</p>
248 </#list>
249 </div>
250 </#if>
251 -->
252 <p class="activiteit-omschrijving"><#if omschrijving?has_content>${htmlUtil.escape(omschrijving)}</#if></p>
253 </div>
254 </div>
255 </a>
256
257 </div>
258 </div>
259
260 </#list>
261 </div>
262
263</div>
264
265
266
267
268 <#-- <#recover>
269 <div class="sheet-text text-center">
270 <p>Er is iets fout gegaan bij het ophalen van de items</p>
271 </div>
272</#attempt> -->