- This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Generic’ is closed to new topics and replies.
Events Made Easy › Forums › Generic › Start & end time display in default single event format fails on multi-day event
In my Default single event format field I have this code:
<p>#_STARTDATE [eme_if tag="#ESC_STARTDATE" notvalue="#ESC_ENDDATE"]to #_ENDDATE [/eme_if] - #_STARTTIME to #_ENDTIME</p><p>#_TOWN</p><p>#_NOTES</p><p>#_ADDBOOKINGFORM</p>
Displays start date, end date if not same as start date, and then start time and end time.
When looking at a single event that is single day, the start and end times display as expected. Live example:
http://sociocracyconsulting.com/events/14/grow-thrive-in-residential-community-living-with-sociocracy/
When looking at a single event that is multi-day, the start and end times do not display. Live example (same site, same code):
http://sociocracyconsulting.com/events/13/fun-and-inclusive-decision-making-foundations-of-sociocracy/
Additional info for troubleshooting:
I am using identical code (except for HTML tags and other placeholders) for the Default list event format, as follows:
<li>#_STARTDATE [eme_if tag="#ESC_STARTDATE" notvalue="#ESC_ENDDATE"]to #_ENDDATE [/eme_if] - #_STARTTIME to #_ENDTIME<br /> #_LINKEDNAME<br />#_EVENTFIELD{location_name}</li>
In the event listing, this does work correctly for both single day and multi-day events, as shown here for the two event examples above:
http://sociocracyconsulting.com/events/
Just tried your code here: works fine for a single event or the event listing.
Make sure your single event is in fact using the format you defined …
I had a custom template for the multi-day event. I thought it was appended to default rather than complete override, but now I understand it is a complete override. My mistake, apologies, no bug here.