julie Posted July 8, 2005 Posted July 8, 2005 (edited) Hi - I'm trying to change my category archive page to look just like my main index (with the same sidebars, links, etc...) Right now when you click on the category in the main page, it just opens up a plainish page with the posts in that category. I tried copying and pasting the code from my main index page to the category archive page - everything looked fine except that the actual list of categories doesn't show up in the left sidebar. Any thoughts? edit: the actual blog can be found here: http://www.aftertastebliss.com/eatit when you click on one of the categories, it takes you to the category archive page but with no listing of the categories. Edited July 8, 2005 by julie Quote
TweezerMan Posted July 8, 2005 Posted July 8, 2005 The current default Main Index template for MT3 uses the following code to display a category listing: ><div id="categories"> <h2>Categories</h2> <MTSubCategories> <MTSubCatIsFirst><ul></MTSubCatIsFirst> <MTIfNonZero tag="MTCategoryCount"> <li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a> <MTElse> <li><MTCategoryLabel> </MTElse> </MTIfNonZero> <MTSubCatsRecurse> </li> <MTSubCatIsLast></ul></MTSubCatIsLast> </MTSubCategories> </div> If you copy this code into a Category Archive template, the MTSubCategories container tag will list only the subcategories of the archive category. Since your categories apparently have no subcategories, MT displays an empty list. To make your category archives list all categories (like what appears on your Main Index page), I'd suggest replacing the <MTSubCategories> and </MTSubCategories> tags with <MTTopLevelCategories> and </MTTopLevelCategories>. Quote
julie Posted July 8, 2005 Author Posted July 8, 2005 thank you so much! i never would have figured that out on my own. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.