December 18, 2003
I created a Category Archive Index template in the Index Templates section. It creates the file http://www.synaptic.bc.ca/NoMadMan/CategoryIndex.html, listing all categories, with their descriptions, and the entries in them. It also uses <a name="..."> to create links to anchors within the document, which I use to build a menu bar at the top of the document.
To do this yourself, create a new index template called CategoryIndex.
Copy the default MasterArchive index template to your new CategoryIndex template.
Insert the code below into CategoryIndex, replacing the <MTArchive> container.
Posted by Patrick at December 18, 2003 08:37 PM
<div align="center"> <MTCategories glue=" | "> <a href="#<$MTCategoryLabel$>"><$MTCategoryLabel$></a> </MTCategories> </div> <div> </div> <dl> <MTCategories> <dt><a name="<$MTCategoryLabel$>"></a><a href="<$MTCategoryArchiveLink$>"><h2><strong><$MTCategoryLabel$> (<$MTCategoryCount$>)</strong></h3></a> </dt> <dd><blockquote><$MTCategoryDescription$></blockquote> <MTEntries> <a href="<$MTEntryLink$>"><strong><$MTEntryTitle$></strong></a> :: <MTEntryCategories glue=" | "> <a href="<$MTCategoryArchiveLink$>"><em><$MTCategoryLabel$> </em></a> </MTEntryCategories><br /> </MTEntries> </dd> <br /><br /> </MTCategories></div> </dl>When you rebuild, there'll be a new CategoryIndex in your blog root directory. Just add links in your other templates and you're ready to go.
Presently listening to: September Fifteenth - Pat Metheny & Lyle Mays - As Falls Wichita, So Falls Wichita Falls (07:45) |