Index: openacs-4/packages/acs-core-docs/www/tutorial-categories.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-categories.html,v diff -u -r1.14.2.5 -r1.14.2.6 --- openacs-4/packages/acs-core-docs/www/tutorial-categories.html 10 Jun 2016 07:35:08 -0000 1.14.2.5 +++ openacs-4/packages/acs-core-docs/www/tutorial-categories.html 23 Jun 2016 08:32:46 -0000 1.14.2.6 @@ -3,18 +3,18 @@ OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.

You can associate any ACS Object with one or more categories. - In this tutorial we'll show how to equip your application with user + In this tutorial we'll show how to equip your application with user interface to take advantage of the Categories service.

- We'll start by installing the Categories service. Go to + We'll start by installing the Categories service. Go to /acs/admin and install it. This step - won't be necessary for the users of your applications because you'll create + won't be necessary for the users of your applications because you'll create a dependency with the Package Manager which will take care that the Categories service always gets installed when your application gets installed.

Now that we have installed the Categories service we can proceed to - modifying our application so that it can take advantage of it. We'll do it + modifying our application so that it can take advantage of it. We'll do it in three steps:

  1. The Categories service provides a mechanism to associate one or @@ -59,8 +59,8 @@ to categorize items. The easiest way to do this is by adding the category widget type of the form builder to note-edit.tcl. - To achieve this we'll need to use the -extend - switch to the ad_form command. Here's the "meat" of the + To achieve this we'll need to use the -extend + switch to the ad_form command. Here's the "meat" of the note-edit.tcl page:

     			# extend the form to support categories
     			set package_id [ad_conn package_id]
    @@ -95,7 +95,7 @@
     should initially be absert.  If it is absent, we create a form to
     allow the user to confirm the deletion.  Note that in
     entry-edit.tcl we used ad_form to access the Form Template
    -commands; here, we call them directly because we don't need the extra
    +commands; here, we call them directly because we don't need the extra
     features of ad_form.  The form calls itself, but
     with hidden variables carrying both
     note_id and
    @@ -226,7 +226,7 @@
             		set category_name [category::get_name $category_id]
             		if { $category_name eq "" } {
                 		ad_return_exception_page 404 "No such category" "Site-wide \
    -          			Category with ID $category_id doesn't exist"
    +          			Category with ID $category_id doesn't exist"
                 		return
             		}
             		# Show Category in context bar