Examples of code to output sitemap in CMSimple template for use instead of standard toc(); function: _______________________________________________________________________________ function mytoc(){ global $cl; $o='';$ta = array(); for($i = 0; $i < $cl; $i++)if(!hide($i))$ta[] = $i; $o .= li($ta, 'menulevel'); return $o; } function mytoc(){ global $cl; $o='';$ta = array(); for($i = 0; $i < $cl; $i++)if(!hide($i))$ta[] = $i; $o .= li($ta, 'sitemaplevel'); return $o; } _______________________________________________________________________________ USAGE: *** PLACE IN HEAD OF TEMPLATE JUST BEFORE *** *** PLACE IN TEMPLATE INSTEAD OF ***
*** CSSHOVER.HTC (Microsoft behaviour) *** You will need to specify the complete url to csshover.htc in the stylesheet, or at least the path relative to the site root if you use this in CMSimple or other CMS which uses a dynamic path for the template. e.g. Currently the path in the css is: body{behavior:url(./csshover.htc);} CMSimple needs: body{behavior:url(/templates/