Skip to main content
Inspiring
June 14, 2018
Answered

CP 9: Closing TOC automatically after navigation?

  • June 14, 2018
  • 4 replies
  • 1324 views

Hi,

I have a question for a scalable project.
Our customer rightly asked us to see to it that the TOC should not be visible anymore after navigating to a specific slide.

Because as it is now, when you jump the video starts playing and you have to close the TOC manually after it covers 1/3 of the slide.

Alternatively the silde should pause until the TOC is closed.

I am very grateful for any suggestions.

    This topic has been closed for replies.
    Correct answer RodWard

    OK.  Well if you have AA's already being executed ON SLIDE ENTER for all slides then you're going to need to just add a line item to those AAs so that the TOC gets automatically closed as well.

    I suggested a Shared Action because it would have been a good fit for a situation where you wanted the same action to be performed on all slides.  Out of the box Captivate doesn't really give you the option to just put an action in one place (e.g. a Master Slide) that will then be executed by all slides in the project.  However, this sort of thing would be possible if you have advanced JavaScript skills or you were using something like the CpExtra HTML5 widget, which can execute actions independent of the normal Captivate interactivity model.

    4 replies

    Participating Frequently
    September 13, 2018

    Thank you!

    Participating Frequently
    September 12, 2018

    Hi, Colleagues!

    We can switch the contents on/off during the project execution as it is discussed here.

    And we can include items into the contents from the settings dialog box before the project is published.

    What do you think is it possible to re-build the standard contents (not own buttons)

    during project execution using advanced actions or java script or somehow?

    Lilybiri
    Legend
    September 12, 2018

    I don't understand your question well. What do you mean by 're-build standard contents'? 

    Participating Frequently
    September 12, 2018

    ...add and delete items from the contents.

    Lilybiri
    Legend
    June 14, 2018

    No need for a shared action, just use the command 'Hide TOC' with the On Enter event of the slide.

    RodWard
    Community Expert
    Community Expert
    June 14, 2018

    That's not the default behaviour of the Overlay TOC. If you want it to have the option to work differently in this particular respect you should probably log an enhancement request with Adobe.

    But in the meantime, if you wanted the TOC to close automatically whenever you navigate to a new slide you could achieve this by adding a Shared Action executed On Slide Enter of all slides that will close the TOC.  The action just needs to Assign the System Variable cpCmndTOCVisible to 0.  Then the Overlay TOC will close as soon as you click an item and jump to that slide.

    Is that what you wanted?

    Inspiring
    June 15, 2018

    Dear Rod,

    thank you.

    The only problem I have is that there are other AA on slide enter. Is there a way to have an action executed for all slides at one stroke?

    Also, why should it be a shared action? Stupid question I know.

    I guess I could just add assign variable cpCmndTOCVisible to 0 for all "enter" AA that I use already.

    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    June 15, 2018

    OK.  Well if you have AA's already being executed ON SLIDE ENTER for all slides then you're going to need to just add a line item to those AAs so that the TOC gets automatically closed as well.

    I suggested a Shared Action because it would have been a good fit for a situation where you wanted the same action to be performed on all slides.  Out of the box Captivate doesn't really give you the option to just put an action in one place (e.g. a Master Slide) that will then be executed by all slides in the project.  However, this sort of thing would be possible if you have advanced JavaScript skills or you were using something like the CpExtra HTML5 widget, which can execute actions independent of the normal Captivate interactivity model.