Skip to main content
Participant
February 14, 2022
Answered

Is there an easy way to toggle Show/Hide All Items (the eyeball on the timeline) for a slide?

  • February 14, 2022
  • 5 replies
  • 250 views

I'd like to have a "Show All" button that would change the visibility of all objects (images, captions, shapes) on a slide to Visible. I'd love to be able to do that without having to address each item individually. If I can't affect all items' visibility at once, I'd settle for a way to do this via states or any other creative solution you all might have. Thanks in advance!

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer MrcMsnr

    If you really want to show all elements on a slide you can use this javascript - just put it in an action (e.g. click on button) and choose execute Javascript:

    var slideElements = document.querySelectorAll('.cp-frameset');
    for (var i = 0; i < slideElements.length; i++) {
        window.cp.show(slideElements[i].id);
    }

     

    5 replies

    Participant
    February 14, 2022

    Oh, and: I've been asked not to group anything because it affects text search/accessibility somehow (unclear on that as of yet)?

    Lilybiri
    Legend
    February 14, 2022

    Why would grouping cause this? That is what I would use to hide a bunch of objects.

    Alternative: you could use CpExtra widget (Infosemantics Australia) and a good labeling system to do the same. That widget is fantastic, but not free. You can have a look, a trial version is possible:

    https://www.infosemantics.com.au/about-cpextra/

    I suspect the same could be done with JS but will leave that to the multiple JS experts. I use only two of the mentioned workflows.

    Participant
    February 14, 2022

    I was hoping you'd have some hidden parameter in your pocket that I could toggle with an action. Worth the ask! 😃

     

    I don't really know about the grouping thing - one of the devs I talked to said that when objects are grouped, they aren't searchable as text from the TOC, and that it could affect the way screen readers work?

     

    Thanks for the recommendation - I'll head over to Infosemantics and check it out. I appreciate the help and the quick response!