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.
This is a patch we are using on our server for image_attach. It does two things: First, it allows you to attach existing image nodes instead of uploading new images. Second, it provides direct image_gallery integration if image_gallery is enabled. When uploading a new image, you have the option to choose which gallery to assign it to. And, when attaching and existing image, the selection is gallery-aware. Thumbnail previews are shown of all existing images.
Comment | File | Size | Author |
---|---|---|---|
#18 | image_attach-90358.patch | 6.19 KB | pebosi |
#15 | image_attach-90358.patch | 6.01 KB | pebosi |
#14 | image_attach-90358.patch | 6 KB | pebosi |
#13 | image_attach-90358.patch | 4.18 KB | pebosi |
#7 | image_attach.module_1.patch | 3.55 KB | h0tw1r3 |
Comments
Comment #1
walkah CreditAttribution: walkah commentedjust FYI - i've committed a modified version to allow attaching existing images. updating this ticket to look at how best to integrate image_gallery.
Comment #2
manuj_78 CreditAttribution: manuj_78 commentedI use the image_assit module with the image module so I am a bit confused as to what this patch is actually supposed to accomplish when the said functionality already exists
Also how does image_attach work. I downloaded the updated module but dont really know how to use it to attach existing image nodes or atleast I couldnt see anything whiel trying to create a page or an image
Manuj
Comment #3
VM CreditAttribution: VM commentedyou may have to enable the attach image in adminster -> settings -> content type, for the content type you want to attach images too.
Comment #4
manuj_78 CreditAttribution: manuj_78 commentedI already have that enabled, but still dont see any option of how I can attach existing image nodes
Comment #5
eliotc CreditAttribution: eliotc commentedThis would be useful for me. Makes it much less complex for users to add images to their posts and still have it assigned to a gallery.
However, I just tried applying the patch to the newest version of the image_attach.module and am getting failed patching at Hunks 2 and 3:
Hunk #1 succeeded at 34
Hunk #2 FAILED at 81
Hunk #3 FAILED at 190
Hunk #4 succeeded at 306
I've attached the rejects here.
Comment #6
drewish CreditAttribution: drewish commentedComment #7
h0tw1r3 CreditAttribution: h0tw1r3 commentedPatch updated. Conflicts from last patch were because the attach without upload functionality was already in. This patch only includes image_gallery integration.
Comment #8
drewish CreditAttribution: drewish commentedmarked http://drupal.org/node/150936 as a duplicate
Comment #9
JaceRider CreditAttribution: JaceRider commentedA few adjustments were needed for me to get this patch to work with the latest version of image_attach... however it would be really great to see this added to the core of the module.
It really helps keep things organized and categorized.
Comment #10
lewmich CreditAttribution: lewmich commentedis there a chance to finish this issue and add it to the core?
is someone working on this issue or have this patch working on his site with Drupal 5.5?
Comment #11
Hetta CreditAttribution: Hetta commentedFrom 2006, for 6.x? Possibly not...
Comment #12
sunNew features go into 6.x-1.x (first and/or only).
Comment #13
pebosi CreditAttribution: pebosi commentedi created an other patch to integrate image_attach with image_gallery, basically based on #7 please try and review.
regards
Comment #14
pebosi CreditAttribution: pebosi commentedCreated a new patch including options for http://drupal.org/node/495522
regards
Comment #15
pebosi CreditAttribution: pebosi commentednew version of #14
regards
Comment #16
charlz CreditAttribution: charlz commentedI got like 3 out of 5 failed patches, so I guess the module has updated a bit since june...
I also tried patching with v1.47, but that messed everything up since the main module probably has changed too much.
Which version of the image module is this last patch referring to?
Comment #17
joachim CreditAttribution: joachim commentedProbably whichever was latest at the time -- your only guide will be CVS as this is what patches should be against.
If you need this functionality, rather than find an old version to apply the patch to, a better use of your time would be to reroll the patch to the latest CVS head and share it here for other users to review, so I can then commit it!
Comment #18
pebosi CreditAttribution: pebosi commentedi created a reroll to fit to the latest 6.1 dev Version.
regards
Comment #19
unc0nnected CreditAttribution: unc0nnected commentedThis is very easy to do already using img_assist. Simply add that module, enable it for your tinyMCE as a button and it will allow you to not only browse all images in the system but also only images that you yourself uploaded.
If the image isn't in the system img_assist will allow you to upload a new one and with the use of taxonomy and image galleries you can not only upload it but specify which galleries it goes into.