Use Reference to make internal references or links in a presentation, useful if there is a need to refer to another slide and make it easily accessible by adding a link to this slide.
Syntax
Place the Reference
binding surrounding the word or sentence that should have a link/reference to another slide.
<<Reference:ReferencePath>...<Reference>>
Parameters
ReferencePath: Key defined in the data. The value in the JSON is used to make a connection to the slide. The value of the key needs to be a string, integer, or float value. The value must be unique from other ReferencePath
s and will only be used as a connection ID. This also means that this value will not be visible in the presentation. The ReferencePath
in the notes will be removed on generated documents.
On the slide that the link should jump to, place the ReferencePath
in the “notes” section on the slide as seen below. If more references are needed, the paths should be separated with a line break.
#-- DocuMotor-References --#
ReferencePath
#-- DocuMotor-References-End --#
Notes
The general logic for creating reference links to specific slides is to create a link that points to a slide with a specific ID. That means that the link should know which slide ID it is pointing to. To apply the ID to the targeted slide the ReferencePath
in the notes is relevant since this is where the value from the ReferencePath
is defined as the slide’s unique ID. The ReferencePath
defined in the Reference binding should be the JSON path to a value that is identical to the value of the ReferencePath
defined in the notes of the targeted slide.
Example
Below is an example of how a list of references link to specific slides, where both list and slides are dynamically generated with the List and Repeat bindings.
Template
Output data
{
"repeatedSlides": [
{
"title": "Title 1",
"slideId": 1
},
{
"title": "Title 2",
"slideId": 2
},
{
"title": "Title 3",
"slideId": 3
}
]
}
Generated presentation