Calendar Keyword modifier not working


(Nic Hubbard) #1

I am trying to write a keyword modifier that checks to see if a calendar event has the same start and end day, if so, I want to print the word hidden since it will be used for an html class.

 

Here is what I used:

%event_end_datetime_j^eq:{event_start_datetime_j}:hidden:%

For some reason it is never true, so it never prints the word hidden. But, I can print those two keywords out individually and they are indeed the same.

 

Ideas?


(Peter McLeod) #2
Hi Nic
Is it missing the replace_keywords modifer?
%event_end_datetime_j^replace_keywords:eq:{event_start_datetime_j}:hidden:%
Tahnsk
Peter

(Anthony Ponomarenko) #3

Hey Nic, 

 

Can confirm that Peters solution works

 

Anthony


(Nic Hubbard) #4

 

Hi Nic
Is it missing the replace_keywords modifer?
%event_end_datetime_j^replace_keywords:eq:{event_start_datetime_j}:hidden:%
Tahnsk
Peter

 

 

That worked, thank you!