• Register
Welcome to the in5 Answer Exchange! This a place to get answers about in5 (InDesign to HTML5) and make requests.

Trigger Lightbox/Thumbnail via Button

0 votes
Hey there,

I have about 5 pictures per pages, which all needs to be "maximized".
Now i am solving this via a button, which triggers an MSO with the pictures.

But with this solution there a few issues:

1. The maximized picture can only be as big as my Document.
2. It s a lot work to do so in over 30 pages with 5-10 pictures each.

So my question is:
Is it possible to trigger the lightbox via an extra button? And is it even possbile to go throw all pictures on the pages marked as thumbnail once the lightbox is open?

Thank you a lot justin. For your help and you wonderful tool. =)
asked May 19 in how_to by ehO (400 points)
    

1 Answer

0 votes

Using the Mark As Thumbnail functionality will take care of this for you.

From the Help Docs:

in5 adds a Mark as Thumbnail option to the Object menu and the context-click (aka right-click) menu. Thumbnails can be used to create portfolios or photo galleries. When an image that is imported into InDesign, then scaled down and cropped by adjusting the object’s frame boundaries, is marked as a Thumnail, in5 will create a link to the original (uncropped, unscaled) image that was initially imported into InDesign. When the Thumbnail image is clicked or touched in the HTML output it will link to the larger image. When an image that has been marked as a Thumbnail has been selected, the menu item will appear with a checkmark. Selecting Mark as Thumbnail will unmark the object, and the object will no longer be treated as a thumbnail (and thus the checkmark will no longer appear next to the menu item).

Open Thumbnails in Lightbox opens larger versions of any images that have been marked as Thumbnails. This option can be used to create portfolios or photo galleries. An image can be imported into InDesign, then scaled down and cropped by adjusting the object’s frame boundaries. Choosing Mark as Thumbnail in the Object or context (right-click) menu of InDesign will cause in5 to treat the object as a Thumbnail. in5 will create a link to the original (uncropped, unscaled) image that was imported into InDesign. When the Thumbnail image is clicked or touched in the HTML output (and Open Thumbnails in Lightbox has been selected), the larger image will be revealed in a Lightbox.

answered May 19 by justin (113,480 points)
Thank you for your quick response.
but I think you missunderstood me.

I know how to mark pictures as thumbnail…
I 'd like to have an extra button to open the Lightbox for an image.

For example:
I have a picture which I would like to show in a Lightbox but I want a button to activate it (something like a + or "maximize"). Because the user doesn't t understand, that the picture is a button.
Thanks for the clarification.
If you thumbnails (instead of MSOs) to trigger another object, you would have to do it with custom javascript.

If you decide to go that route, I would recommend checking to see if the jQuery trigger function (simulating a click on the thumbnail) might work:
http://api.jquery.com/trigger/
...