Suggestion for a new field type: "lightboxed image"

Permalink Browser Info Environment
Hi Ramon,

what do you think about the suggestion to integrate a field type "lightboxed image", to be able to not only display images with fixed dimensions in custom blocks, but also thumbnails that link to the lightboxed full size image?

For instance, it would be nice to be able to build a block with text wrapped around a thumbnail that shows the full size image, when clicked. Maybe with a zoom effect or just a lightbox.

Would it be possible to prevent JS to get loaded multiple times, if that block is used more than once on a page?

Thank you,
Michael

Type: Discussion
Status: Resolved
okapi
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Michael,

We could autoload using the default js and css directories, but if you're already including the script in your theme, it will be ignored... So no real good solution there I guess?

And you're talking about single images here?

Kind regards,

Ramon
okapi replied on at Permalink Reply
okapi
Good morning, Ramon :)

yes, i mean single images, but usable multiple times on a page or even multiple times inside the custom block. For example, to display text, illustrated with zoomable or otherwise enlargable images.
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Michael,

Would it make sense if we add an option (checkbox) in the image field type like

"Make image clickable to full sized image"

And if checked, you can choose your own classes to attach to this anchor. And don't include any JS, but you do the JS yourself in your theme JS, by attaching it to this class on the anchor?

Kind regards,

Ramon

concrete5 Environment Information

Concrete5.7.3

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.