Index: openacs-4/packages/acs-core-docs/www/tutorial-comments.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-comments.html,v diff -u -r1.15 -r1.16 --- openacs-4/packages/acs-core-docs/www/tutorial-comments.html 27 Jun 2015 17:19:13 -0000 1.15 +++ openacs-4/packages/acs-core-docs/www/tutorial-comments.html 7 Aug 2017 23:47:52 -0000 1.16 @@ -1,5 +1,5 @@ -Adding Comments

Adding Comments

You can track comments for any ACS Object. Here we'll track +Adding Comments

Adding Comments

You can track comments for any ACS Object. Here we'll track comments for notes. On the note-edit.tcl/adp pair, which is used to display individual notes, we want to put a link to add comments at the bottom of the screen. If there are any comments, we want to @@ -9,7 +9,7 @@ { object_name $title } { return_url "[ad_conn url]?[ad_conn query]"} }] -

This calls a global, public tcl function that the +

This calls a global, public Tcl function that the general_comments package registered, to get its url. You then embed in that url the id of the note and its title, and set the return_url to the current url so that the user can return after @@ -20,4 +20,4 @@ there are comments. Then you pass the note id, which is also the acs_object id.

We put our two new variables in the note-edit.adp page.

<a href="@comment_add_url@">Add a comment</a>
- @comments_html@
View comments on this page at openacs.org
+ @comments_html@