Show tomorrow's schedule in the last gap¶
After the last session of the day a sign has nothing to show until the morning. A gap template can use that time for the next day's program: the gap flags tell it which gap it is in, and the upcoming-items container's scope selects which day to list.
The pieces¶
system_is_last_gap_of_dayistrueon the gap that runs from the end of the day's last session to midnight;system_is_first_gap_of_dayon the gap from midnight to the first session of a day that has sessions (see Template data fields).data-upcoming-scope="tomorrow"lists the sessions of the day after the current day;"today"the sessions still to come on the current day — both in the event's time zone (see Upcoming items container).
One panel: tomorrow until midnight¶
<!-- every gap except the last one of the day -->
<div data-condition="system_is_last_gap_of_day !== true" class="gap-media">
<video autoplay muted loop playsinline src="assets/loop.mp4"></video>
</div>
<!-- the last gap of the day -->
<div data-condition="system_is_last_gap_of_day === true" class="next-day">
<h2>Tomorrow's Schedule</h2>
<div data-upcoming-items
data-upcoming-scope="tomorrow"
data-template-id="next-day-row"
data-empty-message="That's a wrap. See you next time!"></div>
</div>
<template id="next-day-row">
<div class="schedule-item">
<span upcoming-start-time-format="HH:mm"></span>
<span data-field="title"></span>
</div>
</template>
At midnight the last gap of the day ends and the first gap of the new day begins:
system_is_last_gap_of_day is false there, so the template shows its normal gap content
again. On the event's last evening the list is empty and the data-empty-message shows.
Two panels: across midnight¶
To keep the program on screen until the first session starts, add a second panel for the
morning gap. After midnight "tomorrow" would mean the day after the new day, so the
morning panel uses "today":
<div data-condition="system_is_last_gap_of_day === true" class="next-day">
<h2>Tomorrow</h2>
<div data-upcoming-items data-upcoming-scope="tomorrow" data-template-id="row"
data-empty-message="That's a wrap. See you next time!"></div>
</div>
<div data-condition="system_is_first_gap_of_day === true" class="today">
<h2>Today</h2>
<div data-upcoming-items data-upcoming-scope="today" data-template-id="row"></div>
</div>
<div data-condition="system_is_last_gap_of_day !== true && system_is_first_gap_of_day !== true"
class="placeholder">
<p>Next session shortly</p>
</div>
The same sessions stay listed through the night: as "tomorrow" before midnight, as "today" after it, until the first of them becomes the active item and the content template takes over.
Example template¶
Current and Upcoming Items – Template 6 is this two-panel pattern as a ready-to-upload gap template, with a third panel whose caption names the kind of gap it is showing — between sessions, a free day, before the event, or after it has ended. Download it from Example templates.
Assign it as the Gap Template of a physical room or of the event — not as a content template, and not on a virtual room, which has no gaps.
Related¶
- Upcoming items container
- Template data fields — the gap flags
- How templates are assigned — content and gap slots