Skip to content

Upcoming items container

The Upcoming Items feature allows you to display a list of scheduled events that occur after the currently active item. This is useful for showing "What's Next" or "Coming Up" sections on your digital signage.

The container is a Room Scoped feature: it reads the room's whole schedule, so a template that uses it becomes Room Scoped and can be assigned to a physical room or a scheduled item, as content or gap template (see How templates are assigned).

Setup

A container marked data-upcoming-items with a data-template-id, and a <template> that describes one row:

<div class="upcoming"
     data-upcoming-items
     data-upcoming-limit="3"
     data-upcoming-scope="today"
     data-template-id="upcoming-row"
     data-empty-message="No more sessions today"></div>

<template id="upcoming-row">
  <div class="upcoming-item">
    <h3 data-field="title"></h3>
    <p data-field="room"></p>
    <span data-field="start_time_ampm"></span> – <span data-field="end_time_ampm"></span>
  </div>
</template>

The row template is cloned once per upcoming item, with that item's fields as its data scope, every time the active item changes.

Attributes

Attribute Values Default Description
data-upcoming-limit Number or "all" "all" Maximum number of items to display
data-upcoming-scope "today", "tomorrow", or "all" "today" Which upcoming items to include (see below)
data-empty-message Any text None Message to display when no items are available

data-upcoming-items and data-template-id are required. A limit of 0 or a negative number still renders the next item; a non-numeric limit falls back to "all" (and is rejected at upload).

Scope, evaluated in the event's time zone:

  • "today" — items that start later on the current day.
  • "tomorrow" — items that start on the day after the current day. Meant for gap templates that show the next day's program after the last session — see Show tomorrow's schedule in the last gap. After midnight "tomorrow" means the day after the new current day.
  • "all" — every remaining item in the schedule.

Empty list. With data-empty-message the container shows that text; without it the container is hidden (display: none) until an item matches.

Inside a row

Everything from the data binding reference works inside the row: data-field for the item's fields and the ready-formatted times, data-condition to hide parts of a row, nested data-template-id lists for speakers or sponsors (helper <template>s may sit inside the row template and are found before document-level ones), and the row's own time-format attributes:

<template id="upcoming-row">
  <div class="upcoming-item">
    <h3 data-field="title"></h3>
    <span upcoming-start-time-format="h:mm a"></span> –
    <span upcoming-end-time-format="h:mm a"></span>
    <p data-condition="speaker" data-field="speaker"></p>
    <span data-condition="program === 'Workshop'" class="badge">Workshop</span>
  </div>
</template>

upcoming-start-time-format and upcoming-end-time-format take the same format strings and {locale: xx} suffix as the other time attributes — see Time formatting.

Patterns

Next up only — data-upcoming-limit="1" with a row that says Starts at .

Now and next — bind the current item at the top of the page as usual (data-field outside any container shows the active item) and put a three-row container beneath it.

Rest of the day — data-upcoming-scope="today" without a limit, in a container with overflow: hidden and a fixed height so a long day does not scroll off the screen; style .upcoming-item:first-child to highlight the next session.

Tomorrow's program after the last session — its own page.

Behavior

  • Gaps are never listed; the list is in chronological order and refreshes whenever the active item changes.
  • If nothing renders, check that data-template-id matches the template's id, that the items really start on the day the scope asks for (event time zone), and the console for Template with id "…" not found.
  • Styles apply to the cloned rows like to any element; target the classes you put in the row template.

Examples

Six ready-to-upload templates, previewed on Example templates: templates 1 and 2 list the next three items of the whole schedule (scope="all"), 3 to 5 the next three of today, and 6 is the gap template described on Show tomorrow's schedule in the last gap.