It looks like this feature is in the future plans, but was wondering if anyone has given this feature any thought on how we would go about implementing it?
I have time to implement this feature, as I need this ability for my current project. At the moment, it looks like we are implementing a flex slider field formatter only. If we need additional information saved when the image is uploaded, aka, link url, ect... We will have to create our own flex slider field, correct? Since we aren't able to alter the schema for the core image field. No hook_field_schema_alter in drupal core, bummer. Let me know if anyone has an alternative solution.
Comments
Comment #0.0
droath CreditAttribution: droath commentedEdit post
Comment #1
minorOffense CreditAttribution: minorOffense commentedFor field level support, I would look into creating an image field formatter that has "link" support. Similar to how the Link Field works, except use an image instead of text.
That way, we just render image link fields inside the slider and everything works.
With the Views plugin, you might be able to do this by wrapping the image field with an anchor tag (maybe a custom view template or something). But once again, since we can use Field formatters in Views, if there were an Image Link Field or something like that it would just work.
I'm all for supporting that kind of functionality and I would add support in the field display formatter for that field type but I think it needs to be created independently of Flex Slider.
Thoughts?
Comment #2
bcobin CreditAttribution: bcobin commentedSee this thread, which points to an unofficial release of linkimagefield for D7.
http://drupal.org/node/949588
I've been using the unofficial module with the flexslider as included in the AT Commerce theme and it works nicely to link to external URLs (great!), but what I really need is a Views-based solution, for reasons I won't go into here.
Unfortunately, the Flexslider module doesn't see linkimagefield as an image module, so that won't work.
With the caption support from http://drupal.org/node/1512636 and support for linkimagefield, I think there's potential for a complete solution here, with captions and complete control over links. Just sayin'...
Hope this helps!
Comment #3
droath CreditAttribution: droath commentedThanks, @minorOffense
I took a look at the "link" module, and I agree that this functionality should be developed outside Flex Slider.
Thanks, @bcobin
I was working with the unofficial release of linkimagefield for D7 as well. It's been working well for me too.
I think once this module becomes official, we can start getting support for the Flex Slider formatter.
Comment #4
bcobin CreditAttribution: bcobin commentedThanks for the fast response, @droath - in the meantime, I've been trying out Bendy, which is a sandbox project at the moment, but seems to be working.
http://drupal.org/sandbox/nicoz/1538528
There's no support for any image text other than the title right now, but that seems like it shouldn't be too much of a stretch (I've already submitted a support request.)
It seems like both projects could be fairly close to a complete solution that would offer:
Adaptive display
Image "anywhere" links
Caption
And, while I'm at it, Imagefield crop would be nice too. (I haven't tried Imagefield crop with Bendy, but I have a hunch it would work.)
Seems like all the pieces are there - it's just a matter of somebody putting it together (I wish I could!)
Comment #5
jenyum CreditAttribution: jenyum commentedI made a feature request for Drupal core. (See the screen shot of how Wordpress handles this, this is what clients expect)
The link needs to be added to the field value on the node/edit form, if it is just added on the image formatter on the manage display form that will allow only one URL per field per content type. Any way, off topic here but please add your support to the feature request.
http://drupal.org/node/1570072
Comment #6
droath CreditAttribution: droath commentedI have made a substantial amount of progress on implementing this feature. It's built into the current version of the "Link Image" module, which is currently a sandbox project. The way I currently have it implemented in that module wouldn't result in any support needed from "Flex Slider".
https://drupal.org/sandbox/droath/1564916
Comment #7
minorOffense CreditAttribution: minorOffense commentedGood news! Thanks for the update. I'm going to close this issue since it is now outside of scope for Flex Slider.
Comment #7.0
minorOffense CreditAttribution: minorOffense commentededit post once more