I use Adobe Edge to create sites. I need to use buttons and veeva:gotoSlide function to navigate through slides but buttons are not responding. I've tried using key message, presentation slide names as parameter but still couldn't figure it out.
My JS code is like this:
(function (symbolName) {
Symbol.bindElementAction(
compId,
symbolName,
"${next_btn}",
"click",
function () {
document.location = "veeva:gotoSlide(CPS-000000007)";
}
);
//Edge binding end
Symbol.bindElementAction(
compId,
symbolName,
"${prev_btn}",
"click",
function (sym, e) {
veeva:gotoSlide(001);
}
);
})
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.gotoSlidecan be used to jump around slides into presentations and also to jump to slides of other presentations.gotoSlidetakes one or two parametes that are:media file, mandatory, which is the name of the file that contains the media (e.g.intro.zipin the example below)presentation id, optional, which is the id of the presentation that contains the media (e.g.myProductBenefitsin 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):
intro.zipmy_benefits.zipwhySwitch.zipkey 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:
intro.zipand NOT'intro.zip')veeva:gotoSlide(whySwitch.zip)because Why switch key message is NOT associated with Benfits of myProduct presentation)presentation_idis undermigration, even if the presentation was not migrated (it's a little bit misleading)window.location = "veeva:gotoSlide(intro.zip)";and in HTML<a href="veeva:gotoSlide(intro.zip)">Go to introduction</a>