Conditional keyword and modifier in event listing to show end date


(Trine Paerata) #1

ok, I'm trying to use a conditional keyword with modifier to attach an end date, if different from the start date, here is what I have so far...

 

%begin_asset_attribute_end_date^maxchar:10^eq_date:{asset_attribute_start_date^maxchar:10}:1:0%
    show nothing
%else_asset%
    %asset_attribute_end_date^date_format:j M%
%end_asset%
 
...not working - all listings are showing as false, even when the end date and start date are the same.
 
I have added the modifier "maxchar:10" to use datestamp only, no timestamp (I have also used date format Y-m-d, with no difference)
 

(Trine Paerata) #2

Ended up using...

 

%begin_event_duration^contains:day%- %asset_attribute_end_date^date_format:j M%%end_event_duration%

 

as it gave the same end result