Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Not technical visitors or users of my site have no chance to download the images by doing a "right mouse click" or by clicking on a download link. I even miss the "download-original" link in the lightbox view..
I got no Idea how to provide an opportunity for my site visitors to download the pictures, any solutions for this are very welcome!
Comments
Comment #1
hgmartini CreditAttribution: hgmartini commentedI'm too looking for a way to do this, with Gallery formatter 7.x-1.0 + Colorbox. Any ideas?
There's a duplicate of this issue here:
http://drupal.org/node/1105404
Comment #2
Manuel Garcia CreditAttribution: Manuel Garcia commentedIn Drupal7, I've added the full image URL to the $slides variable that is available in the tpl file just now (see commit).
So you can access it like $data['full_image_url'] to construct your link inside the loop, if you use the latest dev that will come up, or the upcoming stable release.
In drupal6 it's inside $data['filepath'] (inside the loop).
So there is no option to just make it appear, but if you override the tpl file you have the necessary information to make it happen.
Comment #3
hgmartini CreditAttribution: hgmartini commentedGreat, thanks for the update!
I'm using a dev release already, so I can try the new one.
Comment #4
Breakerandi CreditAttribution: Breakerandi commentedI managed getting the path from $data['filepath'] , even building the imagecache path out of it, but i found no way to put this path in the lightbox as an download option...
Comment #5
Manuel Garcia CreditAttribution: Manuel Garcia commentedthats an issue for the lightbox module Breakerandi. I assume it uses theme functions and all, check its source code or ask in its issuequeue.
Comment #6
Breakerandi CreditAttribution: Breakerandi commentedI think my php knowledge ends here..
But thank you for helping!
Comment #7
hui314 CreditAttribution: hui314 commentedIt is any way wo option wo download the original image?