Skip to main content
Inspiring
Jun 14, 2018 1:10 PM UTC
Answered

CP 9: Closing TOC automatically after navigation?

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 is closed to new replies. Start a new post to keep the conversation going.
    RodWard
    RodWardCorrect answer
    Community Expert
    Jun 15, 2018 7:02 AM UTC

    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.

    17 replies

    Participating Frequently
    Sep 13, 2018 9:59 AM UTC

    Thank you!

    Translate
    Participating Frequently
    Sep 12, 2018 2:48 PM UTC

    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?

    Translate
    Lilybiri
    Legend
    Sep 12, 2018 2:51 PM UTC

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

    Translate
    Participating Frequently
    Sep 12, 2018 2:52 PM UTC

    ...add and delete items from the contents.

    Translate
    Lilybiri
    Legend
    Jun 14, 2018 3:43 PM UTC

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

    Translate
    RodWard
    Community Expert
    Community Expert
    Jun 14, 2018 2:18 PM UTC

    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?

    Translate
    Inspiring
    Jun 15, 2018 6:16 AM UTC

    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.

    Translate
    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    Jun 15, 2018 7:02 AM UTC

    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.

    Translate