Unique REL, Captions for TinyMCE Gallery Solved

User's avatar
John D.
18:07 Dec 02, 2014
Hi,
I bought the TinyMCE Image Gallery for a client who wants to create lightboxable galleries on their website. I've gotten it working, but our client is also asking for the ability to have multiple galleries on a single page with separate grouping, so unique REL attributes per gallery. In addition to that, they'd also like to add captions on a per-image basis, so the ability to set alt tags through the uploading screen. I've looked through the code some, but all I received in my download was minified code - both plugin.js and plugin.min.js are minified and identical.
With that in mind, is there a relatively simple way to add in unique REL on a per-gallery basis (I don't have to set it, it could just be a random string) and then add in alt tags on a per-image basis?
Barring that, can I get a copy of the original (non-minified) Javascript so I can add it in myself?
Support team avatar
JS+
22:52 Dec 03, 2014
Hello,

To have separate gallery grouping in new versions of LightBox you need to have different "data-lightbox" attribute for the links. Unfortunately there is no such feature, but I find this idea pretty good and we will improve the Gallery plugin later to generate unique IDs for each galleries.

What about captions: you can modify the template and add a HTML element where you can place cursor and enter any text after gallery is inserted, please read this article about customizing templates: http://doksoft.com/soft/tinymce-image-gallery/styling.html
There are a couple examples there.
But this captions will not be the same as "alt" titles. Alt titles can be set using standards image options dialog after your gallery was uploaded and inserted.
User's avatar
John D.
18:09 Dec 04, 2014
Thanks for the response. Unfortunately I don't have time to wait for a new release - I'll need to write it myself. Can I get a copy of the unminified source code?
Support team avatar
JS+
20:47 Dec 06, 2014
We can not send you source code due to we have commercial product, sorry.

But we have improved the Image Gallery plugin to support the most needed by you feature (check new version on files.doksoft.com in your private area): add-on supports image sets now. All galleries will be grouped as sets automatically. No any other configuring is required (if you did not change the template).

Note, that Image Gallery plugin supports LightBox's sets as 'data-lightbox' attribute. This means that this feature will work with the latest versions of LightBox. Previously it used 'rel' tag to group images so you need to update your LightBox in that case.