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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

walkah’s picture

Title: image_attach: image_gallery integration & existing image attachment » image_attach: image_gallery integration
Assigned: Unassigned » walkah

just FYI - i've committed a modified version to allow attaching existing images. updating this ticket to look at how best to integrate image_gallery.

manuj_78’s picture

I 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

VM’s picture

you may have to enable the attach image in adminster -> settings -> content type, for the content type you want to attach images too.

manuj_78’s picture

I already have that enabled, but still dont see any option of how I can attach existing image nodes

eliotc’s picture

FileSize
6.12 KB

This 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.

drewish’s picture

Status: Needs review » Needs work
h0tw1r3’s picture

Status: Needs work » Needs review
FileSize
3.55 KB

Patch updated. Conflicts from last patch were because the attach without upload functionality was already in. This patch only includes image_gallery integration.

drewish’s picture

marked http://drupal.org/node/150936 as a duplicate

JaceRider’s picture

A 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.

lewmich’s picture

is 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?

Hetta’s picture

Version: 6.x-1.x-dev » 5.x-2.x-dev

From 2006, for 6.x? Possibly not...

sun’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev
Assigned: walkah » Unassigned
Status: Needs review » Needs work

New features go into 6.x-1.x (first and/or only).

pebosi’s picture

Status: Needs work » Needs review
FileSize
4.18 KB

i created an other patch to integrate image_attach with image_gallery, basically based on #7 please try and review.

regards

pebosi’s picture

Created a new patch including options for http://drupal.org/node/495522

regards

pebosi’s picture

FileSize
6.01 KB

new version of #14

regards

charlz’s picture

I 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?

joachim’s picture

Probably 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!

pebosi’s picture

FileSize
6.19 KB

i created a reroll to fit to the latest 6.1 dev Version.

regards

unc0nnected’s picture

This 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.