Topic: Any way to embed email (mailto:) contact link in a gallery? [SOLVED]

Is there any way to embed a mailto:  email link in a gallery - either as an icon (like the way social media is done) or text (e.g. something like "Contact me" but preferably custom text)?  If there isn't... could I request that as a feature?  It would be very useful for me.  Thanks!

Re: Any way to embed email (mailto:) contact link in a gallery? [SOLVED]

We plan to introduce a dedicated 'Email' button (for the gallery's Button Bar) in a future version of Juicebox but until this is implemented, one of the solutions below should work fine.

You could embed a mailto link in the Gallery Title or an image's title or caption by using HTML formatting as documented in these FAQs:
How do I add HTML formatting to image captions and titles?
How do I add HTML formatting to the Gallery Title or Back Button?

The code you would enter for the galleryTitle or an image's title or caption would be something like the following:

<a href="mailto:email@address.com">Click to email</a>

Alternatively, you could use the Back Button for your email link.
You would enter the following for the backButtonUrl:

mailto:email@address.com

.. and then enter "Click to email" for the backButtonText.

A further possible solution would be to convert the 'Open Image' button (displayed on the Button Bar) into a custom 'Email' button so if you currently use the 'Open Image' button for its intended purpose, you will not be able to implement the following.

  • Set every image's linkURL to 'mailto:email@address.com'.

  • Set every image's linkTarget to '_self'.

  • Set showOpenButton="TRUE" in your gallery's XML file.

  • Change the icon for the 'Open Image' button using the technique in the Using Custom Icons support section.

  • Change the toolip text for the 'Open Image' button using the languageList configuration option (so as not to confuse users).

Re: Any way to embed email (mailto:) contact link in a gallery? [SOLVED]

Thanks!