Just some Feedback. I've coded something like this in quite some themes. This module will be of great use.
Perhaps consider to support entity references (or legacy node references) fields.

Comments

dydave’s picture

Hi zany,

Thanks a lot for your feedback and comments.

For sure, I would be glad to consider adding some extra features to this module.

I think you would understand that I prefer to wait for the project application to stabilize:
Release Blocker: #1837170: Image Link Formatter

So that I can release a stable 7.x-1.0 version to open more developments on 7.x-1.x-dev and 7.x-2.x-dev.

Meanwhile, we could already explore further your idea:
Could you please elaborate on:

Perhaps consider to support entity references (or legacy node references) fields.

Take examples, URLs, or screenshots, describe the forms, the fields/pages, etc....

If I didn't misunderstand your idea, we would be able to fulfill it in the 2.x Branch with the help of the Field formatter settings module.
Before giving you my ideas and risking to influence your vision, I would be curious to hear a little bit more about how you would see things from an interface (back-end) and rendering (display/HTML generation) standpoints.

I would greatly appreciate to get your feedback on this and if you could share your thoughts on this particular feature request.

Feel free to let me know if you would have any questions, comments or particular issues on my answer, I would certainly be glad to explain in more details.

Thanks again very much for your interest.
Cheers!

zany’s picture

Priority: Normal » Minor
Status: Active » Postponed

Hi David,

thanks for picking this up in such detail. Your proposed module gets the link target from a link field. My request was to consider an entity reference or node reference field as source for the link, too. This is low-priority though. Just to give you feedback on further directions for this project.

johnpitcairn’s picture

Version: » 7.x-1.x-dev
Priority: Minor » Normal

A big +1 for this. I'd prefer entityreference as the link source, because nodereference is deprecated in D7. But they are functionally very similar.

This should require no changes to the UI or themed output, you'd simply make entityreference/nodereference fields available in the formatter link-source menu, in addition to link fields.

There may be some useful code in field_slideshow, which can use entityreference or nodereference fields as the link source for a slideshow image.

Do not assume the link field or the image field are fields in a node - they may be inside a field collection field in the node.