Agenda

Componence Asset List

Er trad een fout op tijdens de verwerking van de sjabloon.
The following has evaluated to null or missing:
==> hourMinute[1]  [in template "10155#10193#null" at line 257, column 99]

----
Tip: It's the final [] step 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 minute = hourMinute[1]  [in template "10155#10193#null" at line 257, column 81]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign httpServletRequest = serviceContext.getRequest()> 
3<#assign portletId = getterUtil.getString(httpServletRequest.getParameter("p_p_id"), "") /> 
4<#assign backUrl =''/> 
5<#assign currentCompleteURL=portalUtil.getCurrentCompleteURL(httpServletRequest) /> 
6<#assign index=currentCompleteURL?index_of("/-/wcl/")> 
7<#assign expirationdate =''/> 
8<#assign articleId = .vars['reserved-article-id'].data> 
9<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleService")>  
10<#assign journalArticle = JournalArticleService.getLatestArticle(groupId, articleId,-1)> 
11<#assign validatorUtil = staticUtil["com.liferay.portal.kernel.util.Validator"] /> 
12<#setting locale = localeUtil.getDefault()> 
13<#setting date_format="dd MMMM yyyy"> 
14 
15<#assign aCLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")> 
16<#assign aVLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService")> 
17<#assign lLS  = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
18<#assign HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
19 
20<#assign jLS = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
21<#assign dQFU = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"] /> 
22<#assign classResolver = staticUtil["com.liferay.portal.kernel.util.ClassResolverUtil"] /> 
23<#assign eCLSU = serviceLocator.findService("com.liferay.expando.kernel.service.ExpandoColumnLocalService")> 
24<#assign eVLSU = serviceLocator.findService("com.liferay.expando.kernel.service.ExpandoValueLocalService")> 
25<#assign expandoValueClass = classResolver.resolveByPortalClassLoader("com.liferay.expando.kernel.model.ExpandoValue")/> 
26<#assign rFU = staticUtil["com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"] /> 
27 
28 
29<#assign filterVocabNamesForTitle = "Contactvorm"> 
30<#assign vestigingVocabName = "Vestiging PG"> 
31<#assign vestigingPSYQVocabName = "Vestigingen PsyQ"> 
32 
33<#assign curArticleCategories = aCLS.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey())> 
34<#assign type = ""> 
35<#list curArticleCategories as category> 
36        <#assign vocab = aVLS.getVocabulary(category.getVocabularyId()) >       
37       <#if (vocab.getName() == filterVocabNamesForTitle) > 
38			<#if validatorUtil.isNotNull(type)> 
39				<#assign type =  type+", "> 
40			</#if> 
41            <#assign type = type + category.getTitle(locale) > 
42       </#if> 
43</#list> 
44<#macro renderFormHtml cssClass layoutId aCssClass text title target place topic date> 
45	<#assign t = target> 
46	<#if validatorUtil.isNotNull(layoutId)> 
47		<#if t == ""> 
48			<#assign t = "_self"/> 
49		</#if> 
50		<#assign tgt = "target =" + t> 
51		<#assign url = layoutId + "?activiteittitel="+journalArticle.getUrlTitle() + "&location=" + place + "&event=" + topic + "&timeslot=" + date> 
52		<div title="${title}" class="${cssClass}"><a rel="nofollow" class="${aCssClass}" ${tgt} href="${htmlUtil.escape(url)}">${text}</a></div> 
53	</#if> 
54</#macro> 
55 
56<#macro renderInfoFormHtml cssClass layoutId aCssClass text title target> 
57	<#assign t = target> 
58	<#if validatorUtil.isNotNull(layoutId)> 
59		<#if t == ""> 
60			<#assign t = "_self"/> 
61		</#if> 
62		<#assign tgt = "target =" + t> 
63		<#assign url = layoutId + "?activiteittitel="+journalArticle.getUrlTitle()> 
64		<div title="${title}" class="${cssClass}"><a rel="nofollow" class="${aCssClass}" ${tgt} href="${htmlUtil.escape(url)}">${text}</a></div> 
65	</#if> 
66</#macro> 
67 
68<#macro getDetailPagePlid_AC art groupId> 
69    <#assign plid=0> 
70    <#assign tableName="site-settings-"+groupId> 
71    <#assign eValue=eVLSU.getValue(company.getCompanyId(),"site-settings",tableName,"structure-layout-pairs",1)>   
72    <#if validatorUtil.isNotNull(eValue)> 
73      <#assign structureLayoutPairs=stringUtil.split(eValue.getData(),",")> 
74	  <#list structureLayoutPairs as pair> 
75         <#assign pairParts=stringUtil.split(pair,"||")> 
76         <#assign structureId=pairParts[0]> 
77         <#assign layoutId=pairParts[2]> 
78         <#if art.getStructureId() ==structureId> 
79            <#assign plid=getterUtil.getLong(layoutId)> 
80         </#if> 
81      </#list> 
82    </#if> 
83</#macro> 
84 
85 
86<div class="pg-content agenda-detail"> 
87	<div class="col-md-8"> 
88		<#assign backUrl =''/> 
89		<#if httpServletRequest.getHeader("referer")??> 
90			<#assign backUrl =  httpServletRequest.getHeader("referer")/> 
91			<#assign filterIndex=backUrl?index_of("/filter?")> 
92			<#if (filterIndex>0)> 
93				<#assign currentCompleteURL=portalUtil.getCurrentCompleteURL(httpServletRequest) /> 
94				<#assign index=currentCompleteURL?index_of("/-/wcl/")> 
95				<#if (index>0)> 
96					<#assign backUrl =currentCompleteURL?substring(0,index)/> 
97				<#else> 
98					<#assign backUrl =''/> 
99				</#if> 
100			</#if> 
101		<#else> 
102			 <#assign currentCompleteURL=portalUtil.getCurrentCompleteURL(httpServletRequest) /> 
103			 <#assign index=currentCompleteURL?index_of("/-/wcl/")> 
104			 <#if (index>0)> 
105				<#assign backUrl =currentCompleteURL?substring(0,index)/> 
106			 <#else> 
107				<#assign backUrl =''/> 
108		   </#if> 
109		</#if> 
110		<div class="taglib-header "> 
111			<#if (portletId!="" && !(portletId?contains("JournalContentPortlet_INSTANCE_")) && backUrl!="")> 
112				<h3 class="header-title"> 
113					<span class="pull-left"> 
114					<#if validator.isNotNull(backUrl) && portalUtil.escapeRedirect(backUrl)?? && validator.isNotNull(portalUtil.escapeRedirect(backUrl))> 
115					<#assign backUrl= htmlUtil.escapeHREF(portalUtil.escapeRedirect(backUrl))> 
116						<a class="icon-circle-arrow-left previous-level" href="${backUrl}" title="<@liferay.language key='back' />"> 
117						<@liferay.language key='back' /> 
118						</a> 
119						</#if> 
120					</span> 
121 
122				 </h3> 
123			</#if> 
124		</div> 
125		 
126		<#if (abstract_image.getData()!='')> 
127			<#assign imgStr = abstract_image.getData()?substring(0,abstract_image.getData()?last_index_of('/'))> 
128			<#assign imgStr = imgStr?substring(imgStr?last_index_of('/')+1)> 
129			<img src="${abstract_image.getData()}" class="img-rounded pull-right abstract-image" alt="${imgStr}" /> 
130		</#if> 
131		 
132		<div class="caption abstract"> 
133			${abstract_description.getData()} 
134		</div> 
135		<#if subTitle?has_content> 
136			<#if subTitle.getData()!=""> 
137				<h2>${subTitle.getData()}</h2> 
138			</#if> 
139		</#if> 
140		${para1.getData()} 
141		<div class="row-fluid button-container"> 
142			 <#if buttons?has_content> 
143					<#list buttons.getSiblings() as button> 
144						<#assign internalURL = "${button.internalURL.getData()}"> 
145						<#assign externalURL = "${button.externalURL.getData()}"> 
146						<#assign downloadURL = "${button.downloadURL.getData()}"> 
147						<#assign bottonLabel = "${button.getData()}">			 
148						<#assign bottonURL = "">				  
149						<#if (internalURL != '')> 
150							<#assign bottonURL = button.internalURL.getFriendlyUrl()> 
151						<#elseif (externalURL != '')> 
152								<#assign bottonURL = externalURL> 
153						<#elseif (downloadURL != '')> 
154								<#assign bottonURL = downloadURL> 
155						</#if> 
156						<#if ((bottonLabel != '') && (bottonURL != ''))> 
157							 <a class="btn btn-primary" href="${bottonURL}"   target="${button.urlTarget.getData()}"  title="${button.getData()}" > 
158												${bottonLabel}	  
159											<i class="${button.icon.getData()}" style="color:${button.iconColor.getData()}"></i>	</a> 
160							</a> 
161						</#if> 
162				</#list> 
163				</#if> 
164		</div> 
165		 
166		<#assign procedure = aanmeldProcedure.getData() /> 
167		<#if place.getSiblings()?has_content> 
168             
169            <#assign placeCounter = 0/> 
170            <div id="events-container"> 
171	        <h2 class="portlet-title more-agenda-heading">  
172				<span class="portlet-title-text"><@liferay.language key='Beschikbare locaties en datums' /></span>  
173			</h2> 
174            <#list place.getSiblings() as cur_place> 
175            	<#assign placeCounter = placeCounter + 1 /> 
176            	<#assign placeHasEvents = false /> 
177            	<div class="location-body">  
178        					<h4 class="location-text">${cur_place.getData()}</h4>  
179        					<span class="location-address">${cur_place.street.getData()} ${cur_place.housenumber.getData()}, ${cur_place.postcode.getData()} ${cur_place.getData()} <#if (validatorUtil.isNotNull(cur_place.locationComment.getData())) > - <strong>${cur_place.locationComment.getData()}</strong> </#if></span> 
180        		</div> 
181        	<#if cur_place.topic.getSiblings()?has_content> 
182        	<ul class="media-list more-agenda"> 
183        	<#assign topicCounter = 0 /> 
184                 <#list cur_place.topic.getSiblings() as cur_topic> 
185                 <#assign activityStartedBeforeToday = false /> 
186	             <#assign activityStartedButHasFollowUpDates = false /> 
187                 <#assign topicCounter = topicCounter + 1 /> 
188                		   	   	     <#assign timings = ""> 
189                		   	   	     <#assign dates = "" > 
190                		   	   	     <#assign dateCount=1> 
191									 <#if (procedure == "many") >                        			 
192	                        			<#if cur_topic.dateFrom?? && cur_topic.dateFrom.getSiblings()??> 
193		                        			<#assign dateCounter = 0 /> 
194		                        			<#assign sortedDateList = [] /> 
195		                        			<#assign size = cur_topic.dateFrom.getSiblings()?size> 
196		                        			<#list cur_topic.dateFrom.getSiblings() as datefroms> 
197		                        					<#assign dateCounter = dateCounter + 1 />  
198	                            		 			<#setting date_format="dd MMMM yyyy"> 
199	                            		 			<#if (size gt 0) && (datefroms.getData()!='') > 
200	                                					<#assign hourMinute = datefroms.van.getData()?split(":") /> 
201	                                					<#assign hour = hourMinute[0] /> 
202	                                					<#assign minute = hourMinute[1] /> 
203	                                					<#assign dateFroms = datefroms.getData()/> 
204														<#assign dateFroms = dateFroms?date("yyyy-MM-dd")/> 
205														<#assign dateFroms = dateFroms?string["dd-MM-yyyy"]/> 
206	                            						<#assign dateTime = dateFroms + " " + hour + ":" + minute /> 
207	                                					<#assign date = dateTime?datetime("dd-MM-yyyy HH:mm")?date> 
208	                                					<#assign startTime = datefroms.van.getData()/> 
209	                                					<#assign endTime = datefroms.tot.getData()/> 
210	                                					<#assign timings = startTime + " - " + endTime/>  
211	                                					<#if (dateTime?datetime("dd-MM-yyyy HH:mm")?datetime > .now?datetime || dateTime?datetime("dd-MM-yyyy HH:mm")?date?string == .now?datetime?date?string) > 
212	                                						<#assign placeHasEvents = true /> 
213	                                						<#assign sortedDateList=sortedDateList+[{"date":date, "time":timings , "timeslot":dateCounter} ]/> 
214	                                					</#if>  
215	                                				</#if> 
216	                            			</#list>  
217	                                        <#assign size = cur_topic.dateFrom.getSiblings()?size> 
218		                            		 		<#list sortedDateList?sort_by("date") as datefroms> 
219		                            		 			<li class="media"> 
220	                							  	     	<span class="media-object pull-left"> 
221	                        									<#setting date_format="dd"> 
222	                        									<span class='dd'>${datefroms.date?date}</span> 
223	                        									  <#setting date_format="MMM"> 
224	                        									<span class='mm'>${datefroms.date?date}<#if (datefroms.date?string["MMM"] != "mei")>.</#if></span> 
225	                    									 </span> 
226															<div class="media-body"> 
227																<h4 class="media-heading"> 
228																${cur_topic.getData()} 
229																</h4> 
230																<span class="date-right-block"> 
231																<#setting date_format="dd MMMM yyyy"> 
232																${datefroms.date}, ${datefroms.time} uur</span> 
233																<#if cur_topic.status.getData() == "available"> 
234																	<#assign activityDate = datefroms.date?date> 
235																	<#if (activityDate?string != .now?date?string) > 
236																		<@renderFormHtml cssClass="sign-up-form pull-right" layoutId=subscriptionForm.getFriendlyUrl() aCssClass="btn btn-primary" text="Aanmelden" title=subscriptionForm.subscriptionFormTitle.getData() target=subscriptionForm.subscriptionFormTarget.getData() place="${placeCounter}" topic="${topicCounter}" date="${datefroms.timeslot}" /> 
237																	<#else> 
238																		<span class='sign-up-form pull-right activity-started-message'><@liferay.language key='activiteit-reeds-gestart' /></span> 
239																	</#if> 
240																<#else> 
241																	<span class='sign-up-form pull-right'>Volgeboekt</span> 
242																</#if> 
243															</div> 
244		                            		    		</li> 
245		                            				</#list> 
246	                        			</#if> 
247                        		     </#if> 
248                        		     <#if (procedure == "one") >    
249                        		     <#assign agendaDateList=[]/>                      			 
250	                        			<#if cur_topic.dateFrom?? && cur_topic.dateFrom.getSiblings()??> 
251											<#assign size = cur_topic.dateFrom.getSiblings()?size> 
252											<#list cur_topic.dateFrom.getSiblings() as datefroms> 
253	                            		 			<#setting date_format="dd MMMM yyyy"> 
254	                            		 			<#if (size gt 0) && (datefroms.getData()!='') > 
255	                                					<#assign hourMinute = datefroms.van.getData()?split(":") /> 
256	                                					<#assign hour = hourMinute[0] /> 
257	                                					<#assign minute = hourMinute[1] /> 
258	                                					<#assign dateFroms = datefroms.getData()/> 
259														<#assign dateFroms = dateFroms?date("yyyy-MM-dd")/> 
260														<#assign dateFroms = dateFroms?string["dd-MM-yyyy"]/> 
261	                            						<#assign dateTime = dateFroms + " " + hour + ":" + minute /> 
262	                                					<#assign date = dateTime?datetime("dd-MM-yyyy HH:mm")?date> 
263	                                					<#assign startTime = datefroms.van.getData()/> 
264	                                					<#assign endTime = datefroms.tot.getData()/> 
265	                                					<#assign timings = startTime + " - " + endTime/>  
266														<#--Future Dates --> 
267														<#if (dateTime?datetime("dd-MM-yyyy HH:mm")?datetime > .now?datetime || dateTime?datetime("dd-MM-yyyy HH:mm")?date?string == .now?datetime?date?string) > 
268	                                						<#assign placeHasEvents = true /> 
269	                                						<#assign agendaDateList=agendaDateList+[{"date":date, "time":timings}]/> 
270	                                						<#-- Course started before today but has follow up dates in future --> 
271	                                						<#if activityStartedBeforeToday == true > 
272	                                							<#assign activityStartedButHasFollowUpDates = true /> 
273	                                						</#if> 
274	                                					<#-- Course already started before today --> 
275	                                					<#else> 
276	                                						<#assign activityStartedBeforeToday = true /> 
277															<#assign agendaDateList=agendaDateList+[{"date":date, "time":timings}]/> 
278														</#if> 
279	                                				</#if> 
280	                            			</#list> 
281	                            			<#-- Course started and has no follow-up dates in future --> 
282	                            			<#if activityStartedBeforeToday == true && activityStartedButHasFollowUpDates == false> 
283	                            				<#assign agendaDateList=[]/> 
284	                            			</#if> 
285		                        			<#assign agendaDateSize = agendaDateList?size> 
286	                            				<#if (agendaDateSize > 0) > 
287	                            					<li class="media"> 
288			                            				<#list agendaDateList?sort_by("date") as i> 
289		                							  	    <#if validatorUtil.isNotNull(i.date)> 
290		                							  	     	<span class="media-object pull-left"> 
291		                        									<#setting date_format="dd"> 
292		                        									<span class='dd'>${i.date?date}</span> 
293		                        									  <#setting date_format="MMM"> 
294		                        									<span class='mm'>${i.date?date}<#if (i.date?string["MMM"] != "mei")>.</#if></span> 
295		                    									 </span> 
296		                    								   <#break> 
297		                    								</#if> 
298		                								</#list> 
299														<div class="media-body"> 
300															<h4 class="media-heading"> 
301															${cur_topic.getData()} 
302															</h4> 
303															<#assign activityDate = .now?date?string> 
304															<#list agendaDateList?sort_by("date") as datefroms> 
305				                            		 			<#if (datefroms_index == 0) > 
306																	<#assign activityDate = datefroms.date?date> 
307																</#if> 
308 
309																<#setting date_format="dd MMMM yyyy"> 
310																<span class="date-right-block">${datefroms.date}, ${datefroms.time} uur</span> 
311				                            		    	</#list> 
312															<#if cur_topic.status.getData() == "available"> 
313																<#if activityStartedBeforeToday == true && activityStartedButHasFollowUpDates == true> 
314																	<span class='sign-up-form pull-right activity-started-message'><@liferay.language key='activiteit-reeds-gestart' /></span> 
315																<#else> 
316																	<#if (activityDate?string != .now?date?string) > 
317																		<@renderFormHtml cssClass="sign-up-form pull-right" layoutId=subscriptionForm.getFriendlyUrl() aCssClass="btn btn-primary" text="Aanmelden" title=subscriptionForm.subscriptionFormTitle.getData() target=subscriptionForm.subscriptionFormTarget.getData() place="${placeCounter}" topic="${topicCounter}" date="all"/> 
318																	<#else> 
319																		<span class='sign-up-form pull-right activity-started-message'><@liferay.language key='activiteit-reeds-gestart' /></span> 
320																	</#if> 
321																</#if>	 
322							                        		<#else> 
323							                        			<#if activityStartedBeforeToday == true && activityStartedButHasFollowUpDates == true> 
324																	<span class='sign-up-form pull-right activity-started-message'><@liferay.language key='activiteit-reeds-gestart' /></span> 
325																<#else> 
326							                        				<span class='sign-up-form pull-right'>Volgeboekt</span> 
327							                        			</#if> 
328							                        		</#if> 
329														</div> 
330													</li> 
331												</#if> 
332	                        			</#if> 
333                        		     </#if> 
334                 </#list> 
335                 <#if (placeHasEvents == false) > 
336					<li class="media"> 
337						<div class="media-body"> 
338							<#if (validatorUtil.isNotNull(informationFrom.getFriendlyUrl())) > 
339								<div class='no-dates contact-info'> 
340								<div class="contact">Geen datums beschikbaar, neem contact op voor de mogelijkheden</div> 
341									<@renderInfoFormHtml cssClass="sign-up-form" layoutId=informationFrom.getFriendlyUrl() aCssClass="button btn btn-primary contact-button" text="Contact opnemen" title=informationFrom.informationFromTitle.getData() target=informationFrom.informationFromTarget.getData() /> 
342								</div> 
343							<#else> 
344								<span class='no-dates'>Geen datums beschikbaar, neem contact op voor de mogelijkheden</span> 
345							</#if> 
346							 
347						</div> 
348            		</li> 
349	             </#if> 
350                 </ul> 
351            </#if> 
352		   </#list> 
353		   </div> 
354        </#if> 
355	 
356							 
357	</div>	 
358	<div class="filter-container col-md-4 meta-container"> 
359		<h2 class="portlet-title"> <span class="portlet-title-text"><@liferay.language key='Informatie' /></span> </h2> 
360		<div class="filter-content agenda-meta-info"> 
361			<#assign datecount = 1> 
362			<#assign otherdate = ""> 
363			<#assign startdate = ""> 
364			<#assign timings = ""> 
365			 
366			<#if validatorUtil.isNotNull(duration.getData())> 
367				<dl class="agenda-meta-fields"> 
368						<dt class="date-left-block"><@liferay.language key='Duur' /> </dt> 
369						<dd class="date-right-block">${duration.getData()}</dd> 
370				</dl> 
371			</#if> 
372			<#if validatorUtil.isNotNull(type)> 
373				<dl class="agenda-meta-fields"> 
374						<dt class="date-left-block"><@liferay.language key='Type' /> </dt> 
375						<dd class="date-right-block">${type}</dd> 
376				</dl> 
377			</#if> 
378			 
379			<#if validatorUtil.isNotNull(cost.getData())> 
380				<dl class="agenda-meta-fields"> 
381						<dt class="date-left-block"><@liferay.language key='Kosten' /> </dt> 
382						<dd class="date-right-block">${cost.getData()}</dd> 
383				</dl> 
384			</#if> 
385			<div class="button-holder"><a class="btn btn-primary" href="#events-container" title="Check availability"><@liferay.language key='Bekijk beschikbaarheid'/><i class="icon-double-angle-down"></i></a></div> 
386				 
387		</div> 
388	 
389	</div> 
390</div> 
391<#if (portletId!="" && !(portletId?contains("JournalContentPortlet_INSTANCE_")))> 
392<#assign portletId = htmlUtil.escape(portletId)> 
393	<#assign containerId = "#portlet_"+portletId /> 
394	<style> 
395		${containerId} header.portlet-topper{ 
396		display:none; 
397
398	</style> 
399</#if>