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.
Comment Upload needs Views 2.0 (beg pardon) integration. aclight wrote a lot of Views 1 code, which might be useful.
Comment | File | Size | Author |
---|---|---|---|
#13 | comment_upload_views.png | 62.63 KB | askibinski |
#9 | comment_upload_views.patch | 2.97 KB | yhahn |
#2 | views.patch | 1.45 KB | netaustin |
#2 | comment_upload.views_.inc_.txt | 1.84 KB | netaustin |
Comments
Comment #1
Heine CreditAttribution: Heine commentedAssigning
Comment #2
netaustin CreditAttribution: netaustin commentedThis simple integration is probably all that's needed at the moment--this exposes the comment_upload table and its relationships to files, nodes, and comments to views2. The attached views file should be created in a directory named "views" and renamed to comment_upload.views.inc.
Comment #3
netaustin CreditAttribution: netaustin commentedComment #4
masood_mj CreditAttribution: masood_mj commenteddoes anyone used this patch? I cannot find any change in views fields or relationships related to comment upload files
Comment #5
dummas_324324_32 CreditAttribution: dummas_324324_32 commentedanyone tested this patch?
Comment #6
Heine CreditAttribution: Heine commentedInstead of asking if anyone did so, please test the patch and report back here.
Comment #7
dummas_324324_32 CreditAttribution: dummas_324324_32 commentedI´ll tried it, but it isn`t working :-((( anyone any idea?
there was an error while patching
.../sites/all/modules/comment_upload# patch < views_30.patch
patching file comment_upload.install
Hunk #1 FAILED at 164.
patch: **** replacement text or line numbers mangled in hunk at line 18
Comment #8
dummas_324324_32 CreditAttribution: dummas_324324_32 commentedit will be very nice if someone can fix this ;-)
Comment #9
yhahn CreditAttribution: yhahn commentedHere is a re-rolled patch. Works as expected.
Comment #10
RikiB CreditAttribution: RikiB commentedIm trying to use Views to display attached images and tried applying this patch. However in the fields there is only file description, nothing about displaying the actual images. Is there any way to do this?
Comment #11
MatthijsG CreditAttribution: MatthijsG commentedThe "group files block" (template from Views or so) shows only the attachments attached to the node, not to comments. Does the patch add a option in views and is it working? I don't see anywhere anyone a positive result.
Comment #12
livewire1337 CreditAttribution: livewire1337 commentedHas this been added to the alpha5 release? I am trying to use this with views but I don't see it as an available relationship.
Comment #13
askibinski CreditAttribution: askibinski commentedLooking at the code: the patch hasn't been committed to either alpha5 or -dev version.
However yhahn's patch in #5 applies cleanly to alpha5.
You will then be able to create a Views relationship and show the attaches files together with the ones attached to the parent node in a - for example - table view.
We used this in Open Atrium to get a better overview of uploaded files, but I dont' think it's currently possible to link the comment files (as you can see in the screenshot the .txt file is not linked while the other one (attached to the node) is.
Comment #14
Robberti CreditAttribution: Robberti commentedHi, I'm having trouble with the patch in #9.
I editted my Comment_upload.module on line 94 where i added
/**
* Implementation of hook_views_api().
*/
function comment_upload_views_api() {
return array(
'api' => 2.0,
'path' => drupal_get_path('module', 'comment_upload') .'/views',
);
}
/**
* Alter the comment form to support AHAH uploads.
*
* Note; not a hook implementation.
and created a new file "comment_upload.views.inc" where i put the code from <?php till the end in.
But still i'm not able to show the comment_uploaded images in my view.
Comment #15
skizzo CreditAttribution: skizzo commentedsubscribing
Comment #16
tinny CreditAttribution: tinny commentedHow does one apply this patch? I want to help out but dont know how.
Comment #17
soulfroysPlease, someone has already solved this?
Comment #18
Exploratus CreditAttribution: Exploratus commentedInterested in this.
Comment #19
tezalsec CreditAttribution: tezalsec commentedSubscribing to #14.
Tried patch #9, nothing becomes available in views options as described in #13
Comment #20
steeph CreditAttribution: steeph commentedThe patch applied succesfully. But I don't see anything new in Views (2.16).
Comment #21
seanBManually applied the patch from nr 2. Adding relations to nodes/comments from a files view works perfectly! Thnx.