<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>Posts by Stacy Tabb on Learning Movable Type</title>
   <link rel="alternate" type="text/html" href="http://www.learningmovabletype.com/" />
   <link rel="self" type="application/atom+xml" href="http://www.learningmovabletype.com/contributors/stacy/" />
   <id>tag:www.learningmovabletype.com,2008-02-25:/5</id>
   <updated>2007-06-26T06:36:59Z</updated>
   <subtitle>Tutorials and helpful tips for the Movable Type web publishing system</subtitle>
   <generator uri="http://www.movabletype.org/">Movable Type Pro 4.361</generator>

<entry>
   <title>How to List Subcategories for a Single Category</title>
   <link rel="alternate" type="text/html" href="http://www.learningmovabletype.com/a/001865subcats_for_one_category/" />
   <id>tag:www.learningmovabletype.com,2007://10.1865</id>
   
   <published>2007-03-17T17:23:54Z</published>
   <updated>2007-06-26T06:36:59Z</updated>
   
   <summary>Article cross-posted at Sekimori Design. After a few agonizing days of attempting to set up some very custom category displays for a client, we are posting the results here in the hopes it might prevent some other poor programmer from gaining the very same forehead dents we currently sport. (Note:...</summary>
   <author>
      <name>Stacy Tabb</name>
      <uri>http://www.sekimori.com</uri>
   </author>
   
      <category term="Categories" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="categories" label="Categories" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="subcategories" label="Subcategories" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="en" xml:base="http://www.learningmovabletype.com/">
      <![CDATA[<p><em>Article cross-posted at <a href="http://www.sekimori.com/archives/2007_02.php">Sekimori Design</a>.</em></p>

<p>After a few agonizing days of attempting to set up some very custom category displays for a client, we are posting the results here in the hopes it might prevent some other poor programmer from gaining the very same forehead dents we currently sport.</p>

<p>(Note: the following was accomplished in a MT 3.34 environment)</p>

<p>The objective: List subcategories for one single category in Movable Type.</p>

<p>The solution:</p>

<p>First, install Staggernation's <a href="http://www.staggernation.com/mtplugins/FilterCategories/">FilterCategories</a> plugin.</p>

<p>Second, set up your categories, subcategories, etc., then use this code to call them:</p>

<pre><code>&lt;MTTopLevelCategories&gt;
&lt;MTFilterCategories include="Category"&gt;
&lt;ul&gt;
&lt;MTSubCategories&gt;
&lt;li&gt;
&lt;a href="&lt;$MTCategoryArchiveLink $&gt;"&gt;
&lt;$MTCategoryLabel$&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;/MTSubCategories&gt;
&lt;/ul&gt;
&lt;/MTFilterCategories&gt;
&lt;/MTTopLevelCategories&gt;
</code></pre>

<p>Adjust the display mechanism (ie. ul, li, etc.) as you like and there you go.</p>
]]>
      

   </content>
</entry>

</feed>


