In Veeva each slide is associated to a key message, which in turn contains a media file. Each media file is a .zip file and can contain images, video, pdfs, of html pages. Finally, slides are associated to presentations; presentations may have a presentation id.
gotoSlide can be used to jump around slides into presentations and also to jump to slides of other presentations. gotoSlide takes one or two parametes that are:
media file, mandatory, which is the name of the file that contains the media (e.g. intro.zip in the example below)
presentation id, optional, which is the id of the presentation that contains the media (e.g. myProductBenefits in the example below)
Example
For simplicity, let's assume that each key message is directly associated to a presentation. Let's say that we have three key messages (I'm making up names, just to be clear):
- Introduction, that contains the file
intro.zip
- Benefits, that contains
my_benefits.zip
- Why switch, that contains
whySwitch.zip
key messages 1. and 2. are associated to a presentation called Benfits of myProduct which has presentation_id = myProductBenefits, while 3. is not associated.
It is possible to jump to slides with the following links:
veeva:gotoSlide(intro.zip)
veeva:gotoSlide(my_benefits.zip)
veeva:gotoSlide(intro.zip, myProductBenefits)
veeva:gotoSlide(my_benefits.zip, myProductBenefits)
veeva:gotoSlide(whySwitch.zip, myProductBenefits)
Note that:
- parameters are NOT quoted (
intro.zip and NOT 'intro.zip')
- the second parameter is optional. If it is not provided, Veeva will only jump to slides that are inside the current presentation (it is NOT possible to jump to
veeva:gotoSlide(whySwitch.zip) because Why switch key message is NOT associated with Benfits of myProduct presentation)
- in Veeva the
presentation_id is under migration, even if the presentation was not migrated (it's a little bit misleading)
- the links works both in Javascript
window.location = "veeva:gotoSlide(intro.zip)"; and in HTML <a href="veeva:gotoSlide(intro.zip)">Go to introduction</a>