• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is it possible to link a specific slide in a project from another project?

New Here ,
Nov 20, 2013 Nov 20, 2013

Copy link to clipboard

Copied

Is it possible to link a specific slide in a project from another project? Rather than the begining of the project, which I know is possible.

TOPICS
Advanced

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 20, 2013 Nov 20, 2013

Copy link to clipboard

Copied

Hi Sarah,

Yes, this is possible with a bit of JavaScript.  Do an Execute JavaScript action on entry of slide 1 with the below code:

window.getQueryParamValue = function (name){

          var q=document.location.search||document.location.hash;

          if(name==null){return q;}

          if(q){var aryParams=q.substring(1).split("&");

                    for(var i=0;i<aryParams.length;i++){

                              if(aryParams.substring(0,aryParams.indexOf("="))==name){

                                        return aryParams.substring((aryParams.indexOf("=")+1));

                              }

                    }

          }

          return "";

}

if(typeof window.cp === 'undefined'){

          var gotoSlideNumber = getQueryParamValue('cpCmndGotoSlideAndResume');

          if(gotoSlideNumber != '') {

                    document.Captivate.cpEISetValue('m_VarHandle.cpCmndGotoSlideAndResume', gotoSlideNumber -1);

          }

}else{

          window.gotoSlideNumber = window.getQueryParamValue('cpCmndGotoSlideAndResume');

          if(window.gotoSlideNumber != '') {

                    window.cpCmndGotoSlideAndResume = window.gotoSlideNumber -1;

          }

}

Then you can access your course using URL parameters like so:

For SWF output:

http://captivatedev.com/demo/Cp7/JumpToSlide/slide.htm?cpCmndGotoSlideAndResume=9

For HTML5 output:

http://captivatedev.com/demo/Cp7/JumpToSlide/index.html?cpCmndGotoSlideAndResume=7

For Multiscreen:

http://captivatedev.com/demo/Cp7/JumpToSlide/multiscreen.html?cpCmndGotoSlideAndResume=5

The cpCmndGotoSlideAndResume = ? will make the course jump to that slide regardless of SWF or HTML5 output.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 20, 2013 Nov 20, 2013

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Nov 21, 2013 Nov 21, 2013

Copy link to clipboard

Copied

LATEST

You can read more about this with specific use cases here:

http://captivatedev.com/2013/11/21/jump-specific-slide-course-using-captivate-7/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources