- 🇨🇦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 8:15pm 31 July 2023 - 🇨🇦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 10:29pm 31 July 2023 - 🇨🇦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