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.
I just wonder if there is a way to make Thickbox provide us with an additional options to Display CCK Field. Currently, Thickbox provides an option to display an ImageCache preset with a link to the full image (original). Is it possible to have an ImageCache preset linked (via Thickbox) to another ImageCache preset? I have "thumbnail" and "preview" presets and want user to have "preview" displayed in thickbox when "thumbnail" is clicked.
Am I clear enough? :)
Tim
Comment | File | Size | Author |
---|---|---|---|
#2 | thickbox.admin_.inc_.txt | 3.67 KB | yakuza-fs |
#2 | thickbox.module.txt | 6.58 KB | yakuza-fs |
Comments
Comment #1
asak CreditAttribution: asak commentedYes. i'm looking for this right now as well.
Using ubercart and looking to place a watermark on full-size images using thickbox + imagecache + imagefield - but can't figure out how to set the an imagecache preset for the "full size" images.
Comment #2
yakuza-fs CreditAttribution: yakuza-fs commentedI was looking for it too... and made a custom version of Thickbox which provide you with additional selection box at admin/settings/thickbox where you can select prefered ImageCache preset to display linked images via Thickbox. This option is available only when Imagefield/ImageCache modules are installed. I was not coding for a long time, so please don't kick me if something if wrong in coding. So... I don't know how to create patches, so just download/replace these files and check Thickbox settings page.
For curious people, I have added the following code to thickbox.admin.inc
as a part of
Also, I've modified thickbox.module to proceed options above
This code was added to theme_imagefield_image_imagecache_thickbox function.
Works great!!!
This functionality is enough for me but I will probably add an option to choose different presets for each ImageField instances (far going plans).
Would be great to see this functionality in the next version of Thickbox
Comment #3
frjo CreditAttribution: frjo commentedNeat feature! I have committed the code by yakuza-fs, with some minor modifications, to 6-dev now. Please try it out and report back here.
yakuza-fs: How to create patches http://drupal.org/patch/create
Comment #4
frjo CreditAttribution: frjo commentedComment #5
m4rt1n CreditAttribution: m4rt1n commentedat the moment i am using lightbox2 because i am missing this option in thickbox. could you please also provide this for the 5.x-2.x version?
Comment #6
drewish CreditAttribution: drewish commentedfrjo, so if you've committed it and there's been no complaints when do you close the issue?
Comment #7
frjo CreditAttribution: frjo commentedUsually after I here back from a few people but I finally have updated my own site to Drupal 6 and this is working well there. I close this and will release a new version shortly.
Comment #8
speis CreditAttribution: speis commentedthis is great!