<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Category Tree</title><meta name="generator" content="DocBook XSL Stylesheets V1.70.1"><link rel="start" href="index.html" title="dotlrn-Catalog Documentation"><link rel="up" href="ch01.html" title="Chapter�1.�DESIGN"><link rel="prev" href="ch01s05.html" title="Privileges"><link rel="next" href="ch02.html" title="Chapter�2.�USERS MANUAL"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Category Tree</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s05.html">Prev</a>�</td><th width="60%" align="center">Chapter�1.�DESIGN</th><td width="20%" align="right">�<a accesskey="n" href="ch02.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id901815"></a>Category Tree</h2></div></div></div><p>The package installation also mounts an instance of itself under the dotlrn-catalog url, here another amp-callback-proc is called (after-mount) to create the category tree that will allow to categorize each course in different ways. The category tree is created as follows:</p><pre class="programlisting"># To categorize courses set tree_id [category_tree::add -name "dotlrn-course-catalog"] category_tree::map -tree_id $tree_id -object_id $package_id -assign_single_p "t" </pre></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s05.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="ch02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Privileges�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�2.�USERS MANUAL</td></tr></table></div></body></html>