Compatibility with Image Link Formatter

Created on 2 July 2022, over 2 years ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

I had to use views to achieve this but if these 2 modules worked together it would simplify everything a lot

📌 Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada awasson

    @apaderno, I'm just reviewing issue queue items.

    Can you let me know the use case that required compatibility with Image Link Formatter?

    Thanks,
    Andrew

  • #3 @awasson For example, I have a link that I want an image to be the one that links it and using this Image Link Formatter I can do it then I want to give it default attributes such as that it opens in a new tab or put a class on it because Image Link Formatter only lets you link a field but you can't put attributes and this module complements what the other one lacks

  • Status changed to Active over 1 year ago
  • 🇨🇦Canada awasson

    @Nelo_Drup
    Thanks for the clarification on a use case. I think I understand exactly what you want to do.

    I think it would be better if the Image Link Formatter module had that capability built in so I'm going reach out to the maintainer of that module and extend his module to add the ability to add attributes natively. I've got a proof of concept running locally and I'll send a patch to see if he wants to add it to his module.

    Cheers,
    Andrew

  • Status changed to Closed: duplicate over 1 year ago
  • 🇨🇦Canada awasson

    I really do think that Image Link Formatter should have the ability to add attributes natively so I've created a feature request issue on Image Link Formatter and posted a patch that will provide those features. You can find it here: https://www.drupal.org/project/image_link_formatter/issues/3378313 💬 Add link attributes and target natively. Needs review

    It's going to need a tiny bit of fine tuning to add hook_update_N() to update the module config and make it aware of the changes but it's pretty much ready to go so I'm going to set this one as Closed Duplicate and refer to the Issue at Image Link Formatter.

    Thanks to all who have been following this issue.

    Cheers,
    Andrew

Production build 0.71.5 2024