| templatecategorylist |
| This command allows a page author to create highly customizable category
lists by actually creating the javascript and code themselves. |
| |
| The arguments to this command are: |
| Required arguments: (see below for details about patterns) |
| startsubcatpattern - Pattern to start a new subcategory with |
| endsubcatpattern - Pattern to end a new subcategory with |
| treeleafpattern - Pattern to use to output the 'leaves' of the tree (the real clickable categories) |
| |
| Optional arguments: |
| owner_id - Constrain to this owner ID (default=none) |
| category - Category mask (default=* for all categories and subcats) |
| indentstring - String used for ##INDENT## (default=' ') |
| |
| Patterns are blocks of character data on which a special search and
replace will be performed with certain predefined tokens to substitute
things like category names. To pass large blocks as arguments, first
define them to variables with lexml_set and then use $variable to pass
them (since you can't pass a multiline argument in an argument body). |
| |
| The patterns that will be searched and replaced are: |
| ##CATEGORY## - Will be replaced with the full category spec e.g. c:sc:... |
| ##CATEGORYNAME## - Name of the current category or subcategory |
| ##URLCATEGORY## - URLencoded category spec |
| ##URLCATEGORYNAME## - URLencoded category name |
| ##RAND1## |
| ##RAND2## |
| ##RAND3## |
| ##RAND4## - These will be replaced with random 8-character strings |
| ##INDENT## - Series of indentstring corresponding to depth |
| |
| Returns 'ok' or 'error:...' |