Forum OpenACS Q&A: Re: Getting comments on ETP pages -

Posted by Gilbert Price on
Thanks for popping in Tilmann,

The logs show no problem with the etp-procs.tcl file:

[05/Jan/2003:13:32:37][25473.1024][-main-] Debug: Loaded packages/download/tcl/download-procs.tcl.
[05/Jan/2003:13:32:37][25473.1024][-main-] Debug: Loading packages/edit-this-page/tcl/etp-procs.tcl...
[05/Jan/2003:13:32:37][25473.1024][-main-] Debug: Loaded packages/edit-this-page/tcl/etp-procs.tcl.
[05/Jan/2003:13:32:37][25473.1024][-main-] Debug: Loading packages/file-storage/tcl/file-storage-procs.tcl...

Should I have put the -

ad_proc -public get_gc_link { } { } {
        upvar pa pa
        upvar comments comments
        upvar comments_link comments_link
        set item_id $pa(item_id)
        set object_name $pa(title)
        set comments ""
        set comments_link ""

        append comments_link [general_comments_create_link -link_text "Blah Blah Add a comment" -object_name $object_name $item_id [ad_conn url]]
        append comments [general_comments_get_comments -print_content_p 1 -print_attachments_p 1 $item_id ]

- code into etp-procs.tcl instead of the etp-gc.tcl or chould I rename etp-gc.tcl to etp-gc-procs.tcl?

Seems the direction we're heading here...