Closed (fixed)
Project:
Image
Version:
4.7.x-1.x-dev
Component:
image_attach
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2006 at 04:36 UTC
Updated:
27 Jan 2007 at 06:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
dodorama commentedgreat!
I will test this ASAP
Comment #2
gordon commentedTaking a look at this, I think that having a separate views interface for the image_attach module is not the best.
Having a single views interface for the image module would be much better.
Here is a patch which adds into the image module views interface the ability to read handle images which have been attached to a node.
Comment #3
gordon commentedhadn't stripped out the image_alter() stuff.
Comment #4
David Lesieur commentedThis is an interesting approach, and I like reducing the amount of code. ;-) However, I see some serious drawbacks to it:
Comment #5
dodorama commentedI just tested the first patch (by David) and works flawlessy for me. I don't think it's a problem to have a separate interface for attached images since, infact, they're two different modules at the moment.
Can we mark this ready to be committed?
Comment #6
gordon commentedThe reason that I though adding them together means that you can create your view, and include both image nodes, and nodes with images attached in the same list.
Where as you cannot do this with having the views code in the image attach module, as you have 2 fields for a view and need to use some custom theming to get them into 1.
Comment #7
David Lesieur commentedYes, your use case is a valid one. However, my gut feeling is that it may not be the most sought after. So I suggest that we commit the original patch. ;-)
In fact, one patch does not really precludes the other, as they neither have exactly the same purpose nor do they affect the same modules.
Comment #8
kuahyeow commentedJust what I needed. I will test it out, and let you know the results.
Comment #9
David Lesieur commentedTested and ready to be committed, i.e. the original image_attach.module.patch. ;-)
Comment #10
kuahyeow commentedI have tested the original patch, just for displaying attached images and it works without problems. As I have no use for the second patch, i did not test that.
Comment #11
nedjoYes, these are separate patches addressing related but distinct issues. The first is the one described in the issue title: that image_attach should expose its table to views. gordon's patch could go into a follow-up issue. It would require more discussion and review.
+1 to the first patch.
Comment #12
walkah commentedcommitted David's patch. Thanks for the patch and the reviews! :)
Comment #13
(not verified) commented