Jump to content

Recommended Posts

Posted (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 by julie
Posted

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>.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...