Forum OpenACS Development: Re: Comments on files in file storage

Collapse
Posted by Caroline Meeks on
Putting comments on a file into the file details page was pretty easy:
Index: file.tcl
===================================================================
RCS file: /usr/local/cvsroot/ssv2/packages/file-storage/www/file.tcl,v
retrieving revision 1.6
diff -r1.6 file.tcl
91c91,92
<
---
> set gc_link [general_comments_create_link $file_id "[ad_conn url]?file_id=$file_id"]
> set gc_comments [general_comments_get_comments $file_id]

And corresponding changes to display in file.adp..not shown because bbaord doesn't like the tags.

If general-comments is not mounted it just quietly does nothing.

Should this go into to OACS? I'd say yes, its good to have examples of how the packages work together. Do we need to put a check to see if general-comments is installed?