Add ability to link to an Image Style instead of the original image

It would be super handy to be able to link this out to an image style rather than the original image so that slideshows and lightboxes could be just that much more flexible.

Proposed resolution

The best approach will be to add an item to the "Link image to" drop-down element to Link to: Image Style. When that has been selected, the target image styles are rendered below the "Link image to" drop-down and the administrator/site builder can select the appropriate image style.

Remaining tasks

Work in progress. Currently exploring the API and hook_field_formatter_third_party_settings_form(),

User interface changes

Will add Link to: Image Style to "Link image to" drop-down select element and then render select element for Image Styles.

CommentFileSizeAuthor
#3 link_to_an_image_style-3374019-3.patch5.24 KBawasson

Comments

awasson created an issue. See original summary.

awasson’s picture

Issue summary: View changes

Updating the Issue Summary.

awasson’s picture

Status: Active » Needs review
StatusFileSize
new5.24 KB

Patch Attached to add checkbox and select with asset code for linking to alternate image style to image fields.

If anyone is following this issue, give it a spin. I'll apply it to the DEV and then tag a new release within the week.

Cheers,
Andrew

  • awasson committed b9c44d52 on 8.x-1.x
    Issue #3374019 by awasson: Add ability to link to an Image Style instead...
awasson’s picture

Status: Needs review » Fixed

Patch has been applied to Dev and I'll tag a new release shortly.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.