Skip to main content

Display multiple days, accommodations, steps and transport items in Slides

Learn how to configure your Slides template when you want to display several days or program items in the generated document.

In Slides, variables refer to a specific item in your project.

For example:

$$days.1.title$$ → title of Day 1
​$$days.2.title$$ → title of Day 2
​$$days.3.title$$ → title of Day 3

This means that if you want to display several items, you need to prepare a slide for each one you want to display.

Unlike HTML loops, Slides do not automatically repeat the same slide for every item.


Create a slide for each item

Start by designing the slide for the first item. Then, duplicate it and change the number in the variables.

For example, for three days:

Slide 1

$$days.1.title$$
​$$days.1.date$$

Slide 2

$$days.2.title$$
​$$days.2.date$$

Slide 3

$$days.3.title$$
​$$days.3.date$$

The same principle applies to other program items:

Item

Examples

Days

$$days.1...$$, $$days.2...$$

Accommodations

$$accom.1...$$, $$accom.2...$$

Steps

$$steps.1...$$, $$steps.2...$$

Transport

$$transp.1...$$, $$transp.2...$$

💡 Design the first slide, duplicate it, and then change the item number in all the variables on the duplicated slide.


What if a project has fewer items?

Your template may contain slides for 10 days, while a particular project only has 7.

In this case, use a conditional generation rule so that slides prepared for Days 8, 9 and 10 are not generated.

For example, use:

$$days.8$$

to generate the corresponding block only when Day 8 exists.

🔭 See Use conditional rules in Slides to learn how to generate blocks only when the required information exists.

⚠️A numbered Slides variable retrieves only the specified item. $$days.1.title$$, for example, retrieves Day 1, it does not automatically display all the days.

Did this answer your question?