Keyword modifier for event_end_date


(Gjboyd7) #1

Hi

 

We are trying to display the event_end_date, only when it is different from the event_start_date.

 

Within the default format of our "Calendar Events Search Page" asset, I have tried to use a keyword modifier, to possibly show or hide using css, here is what we used that does not work:

 

%event_start_datetime_jFY^eq:{event_end_datetime_jFY}:TRUE:FALSE%

 

This just outputs as FALSE always.... does not work

 

Then tried adding ^replace_keywords....   %event_start_datetime_jFY^replace_keywords^eq:{event_end_datetime_jFY}:TRUE:FALSE%

 

also does not work.

 

Does anyone know what we are doing wrong and how we could achieve this.


(Peter McLeod) #2

Hi

 

Try a colon : rather than a caret ^ after replace_keywords:

%event_start_datetime_jFY^replace_keywords:eq:{event_end_datetime_jFY}:TRUE:FALSE%

You could also try something similar to below to hide/show using keyword replacements rather than css ...

%event_start_datetime_jFY% %event_start_datetime_jFY^replace_keywords:neq:{event_end_datetime_jFY}: to {event_end_datetime_jFY}:%

Thanks

Peter