Programming and publishing news and comment
Workbench.rootWorkbench.viewCategories()
This script displays a list of links to each of a weblog's categories that is being rendered as HTML. Other categories are ignored.
To use the script on a Web page or a template such as #homeTemplate.txt, at the spot where the category links should appear, add this macro:
<%Workbench.viewCategories()%>
Here's the output of that macro for my weblog:
Jargon
The macro displays each category link separated by BR tags. It can be called with three parameters, in this order:
An example:
<%Workbench.viewCategories("sidebarlink", "<li>", "<br>")%>
Output of that macro for my weblog:
|
Copyright 2004 Rogers Cadenhead. Last updated 3/19/2004; 4:18:47 PM.