Forum Discussion

ChristophSchmol's avatar
ChristophSchmol
Community Member
8 months ago

How to link to a lightboxed layer?

Hi everyone,

I'd like to open a lightbox that shows a certain layer of the target slide.
This is my working solution without the lightbox:

  • I've added a true/false variable set to false.
  • I've made a link on the source page with two triggers: One that sets the variable to true, one that jumps to the target slide.
  • On the target slide, I've added a conditional trigger that shows the desired layer when the timeline starts IF the variable is true.

When I change the trigger on the source page from "Jump to slide" to "Lightbox", the target slide opens in the lightbox but no longer redirects to the layer I need to show.

What do I need to change/add to make it work?

Thank you,
Christoph

  • As the attached file shows, when you lightbox a slide, it can still be set to show a given layer based on a T/F variable. 

    So what's wrong with your version? Troubleshooting is just guessing without seeing the .story file. If you upload it, someone might be able to solve the issue.

    Here are the best practices for uploading a .story file:

    • Only include slides that are related to the problem.
    • Be sure objects, layers, motion paths, and variables have meaningful names.
    • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text.
  • Hi Judy,

    thank you for the story file.

    It helped me realize that I had placed the lightbox trigger before the trigger for toggling the T/F variable. After correcting the order, opening the desired layer now works within the lightbox.

    Best regards,
    Christoph

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      I'm glad you got your file working. Triggers run in order, so it's vital to ensure they're positioned correctly. (That's especially true when an action includes a "jump to" trigger. That has to be last, because the program can't run triggers if it's already left the slide where the triggers are.) 

      FYI: When working with variables, troubleshooting is easier if you put a text-box on the slide(s) with a reference to display the variable's value. That lets you check whether it changes as expected.