Posted by Heine on January 28, 2009 at 8:09pm
15 followers
| Project: | Comment Upload |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | critical |
| Assigned: | netaustin |
| Status: | needs work |
Issue Summary
Comment Upload needs Views 2.0 (beg pardon) integration. aclight wrote a lot of Views 1 code, which might be useful.
Comments
#1
Assigning
#2
This 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.
#3
#4
does anyone used this patch? I cannot find any change in views fields or relationships related to comment upload files
#5
anyone tested this patch?
#6
Instead of asking if anyone did so, please test the patch and report back here.
#7
I´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
#8
it will be very nice if someone can fix this ;-)
#9
Here is a re-rolled patch. Works as expected.
#10
Im 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?
#11
The "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.
#12
Has 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.
#13
Looking 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.
#14
Hi, 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.
#15
subscribing
#16
How does one apply this patch? I want to help out but dont know how.
#17
Please, someone has already solved this?
#18
Interested in this.
#19
Subscribing to #14.
Tried patch #9, nothing becomes available in views options as described in #13
#20
The patch applied succesfully. But I don't see anything new in Views (2.16).