Adding Attachment Module information to Views

peterdeitz - December 5, 2006 - 16:27
Project:Attachment
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hi all,

I recently came across Gordon Heydon's include for the Uploads module:
http://drupal.org/node/67262

I'm wondering if we could devleop a similar include for the Attachment module. I am building a site that will be document heavy, with a lot of PDFs that require titles and descriptions. If I could sync the Attachment Module with Views, I'd have a really powerful and versatile tool to work with...

Please let me know if this is something that could be developed relatively easily.

All the best,
Peter Deitz

#1

charly - January 14, 2007 - 20:11

ill be glad to see it too! I tried to modify the views_upload.inc without succes :(

#2

Deciphered - December 19, 2007 - 02:55
Status:active» needs review

I copied views_upload.inc to views_attachment.inc and made changes which seem to work, it's not fully tested but it did give me the results I was looking for.

I've attached the file for anyone who is interested, just change the file extension to .inc and stick it in your views/modules directory and it should work.

AttachmentSize
views_attachment.txt 4.49 KB

#3

WorldFallz - September 26, 2008 - 18:21

+1 seems to work as expected, no errors. I'd roll a patch for this but I'm not sure how-- it belongs to the attachment module but needs to live in the views module directory.

 
 

Drupal is a registered trademark of Dries Buytaert.