I’m working on building a widget that only 1 group is going to use. They have events that span multiple days, so by default the event displays multiple times. Is it possible to have the event only show up the 1 time?
In the link above you can see 1 event is from July 14 - July 18. That same event shows up also as July-15-18, July 16-18, July 17-18 and July 18-18. Is it possible to modify the widget so the event only shows up as 1 line item as “July 14-July 18”?
I do think a few folks have created widgets that work this way (feel free to chime in, other developers!).
The first, main piece is going to be setting hide_repeats=true (“Only show next instance of a repeating/multi-day event?” in the widget editor) so it only shows one instance of each upcoming multi-day event.
Then, if you edit your widget formatting, {date} {until} would get you get “July 14 until July 18”. Or something like {date} {end_date} would get you “July 14 July 18”, so you could then try adding a little widget conditional logic to add in the dash.
Looks like in my testing {date}{-|end_date|} gives you what you’re looking for, only showing the - when end_date has a value. Hope this helps!