Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml,v diff -u -N -r1.4.2.8 -r1.4.2.9 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 9 Feb 2004 22:54:29 -0000 1.4.2.8 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 10 Feb 2004 13:18:28 -0000 1.4.2.9 @@ -1,5 +1,5 @@ - %myvars; @@ -308,7 +308,6 @@ can take advantage of the Categories service there needs to be a way for administrators of your application to choose which category trees are applicable for the application. - The way to achieve this is is to provide a link @@ -330,6 +329,7 @@ <li><a href="@category_map_url@" class="action_link">Site-Wide Categories</a> + The link created by the above code will take the admin to the generic admin UI where he can pick category trees that make sense for this application. The same UI also includes facilities to build and edit @@ -622,7 +622,7 @@ some_table children WHERE children.tree_sorktey between parent.tree_sortkey and tree_right(parent.tree_sortkey) - and parent.tree_sortkey <> children.tree_sortkey + and parent.tree_sortkey <> children.tree_sortkey and parent.key = :the_parent_key; @@ -633,7 +633,7 @@ numbers in tree_sortkey SQL queries, like tree_level(children.tree_sortkey) - 4. That is basically an incorrect way to do it, - and subtracting the parent's tree_level is the preferred method. + and subtracting the parent's tree_level is the preferred method. This example does not include the parent. To return the entire subtree including the parent, leave out the non-equals clause: