Skip navigation
lokesh vee
Currently Being Moderated

Hide_menu

Aug 15, 2012 9:23 AM

Tags: #hide_menu

Hi,

 

 

I want to hide the menu(TOC) for particular slides in my captivate 6 course.  I have tried using the variable cpCmndTOCVisible by setting its value to 0. But this approach is not working.

 

 

Can help me on this.

 

 

Regards,

Lokesh V

 
Replies
  • Currently Being Moderated
    Aug 15, 2012 10:23 AM   in reply to lokesh vee

    You are right, I never could make it happen neither with that new system variable. Probably another bug...It is a Cmnd, should be active, not read-only. Perhaps someone from the Adobe Staff could explain how to handle it?

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2012 11:24 AM   in reply to Lilybiri

    cpCmndTOCVisible //Shows or hides the TOC. Set the value to 1 to show the TOC. Set the value to 0 to hide the TOC

     

     

    Any movement on this? I'm also trying to have the TOC close/disappear on certain slides.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2012 11:32 AM   in reply to Alan Redensek

    Just checked again it is functional but only if the TOC is in Overlay mode. I was able to show the TOC on a slide, then some slides later to hide it again. Using a standard advanced action, because the With dropdown list in the simple Action accordion doesn't allow to choose cpCmndTOC.

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2012 11:48 AM   in reply to Lilybiri

    No kidding! I'm trying and still unable to get it to work.

     

     

    Can you see what am I doing wrong here?

    advanced_action1.png

     

    The TOC just stays open, both in the flash and HTML5 output.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 24, 2012 2:36 PM   in reply to Alan Redensek

    I was completely unsuccessful with trying to get the cpCmndTOCVisible variable to work, and since it's only the HTML5 output I'm working with, I just called the following functions with javascript:

     

    toc.tocAnimator.showTOC();

    toc.tocAnimator.hideTOC();

     

    So far, this works like a charm

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2012 12:08 PM   in reply to Alan Redensek

    can you be more specific on where you added that js? did you add it in an advanced action or after publishing?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2012 7:03 AM   in reply to jeanrouge

    Yes I created an advanced action called something like openTOC and put in a javascript call to toc.tocAnimator.showTOC();

     

    Create another action to close the toc and call toc.tocAnimator.hideTOC();

     

    Keep in mind I've only tested this working in HTML5, I don't believe it will work in the flash output.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 7:46 AM   in reply to Lilybiri

    Just posting an update to this question.  If you are using Captivate 6 first make sure you have installed the patch which updates your Captivate 6 to version 6.0.1.240.

     

    You can create a toggle button to open and close the TOC menu with this expression.

     

    Expression  cpCmndTOCVisible = 1 - cpCmndTOCVisible

     

    This will now work correctly in HTML5 and Flash.

     

    Cheers,

    Richard

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 8:46 AM   in reply to FIMage

    Richard, you should add that this only works for overlay TOC's. The system variable is brand new in Captivate 6 and is mentioned in my overview of system variables. As about the toggle suggestion, where on my blog did you find it? Has been so many times I suggested that expression.

     

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2012 9:20 PM   in reply to Lilybiri

    Actually, we should log an enhancement request for Cp7 that would mean this same variable (or perhaps a new one could get added as cpCmndSeparateTOCVisible) would also hide a separate TOC by perhaps making it disappear.  Why should it only work on an overlay TOC?  There will definitely be times that you might also want the TOC to disappear if you are using a separate TOC.  I know you can use a system variable to Lock the TOC, but in some cases just being able to see the TOC at all might be giving too much away.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 4:33 PM   in reply to Lilybiri

    Thanks Lilybiri,

     

    I thought that because you had mentioned that in an earlier post that someone following the thread would have noticed it but adding a reminder would have been a good idea.  I have been searching a lot of Captivate forums recently so not sure where I found the original post about the toggle suggestion.

     

    Richard

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 11:38 PM   in reply to FIMage

    Richard,

     

    That suggestion is not only in several threads on the forum, but in a lot of my blog posts? First time I published it was here more than 2 yrs ago in one of my first articles:

    http://lilybiri.posterous.com/to-blog-or-not-to-blog

     

    More recent ones, with examples:

    http://lilybiri.posterous.com/toggle-button      very detailed explanation and popular (number of hits)

    http://lilybiri.posterous.com/toggle-shape-buttons    for Captivate 6 only

     

    Lilybiri

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 17, 2013 1:04 AM   in reply to FIMage

    Thank you Richard for sharing.

    This worked with my project too.

     

    Cheers!

    Alvin

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points