Help - Search - Members - Calendar
Full Version: Subcats Page Listing Other Subcats In Current Catagory
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
RRG
Hello!
I Have a dream of making this work, just not sure how.

the site: www.imlschicago.org

The horizontal nav is a listing for all the Categories.
Each Category has subcategories.

When you click on a Category, you go to that page and it lists the sub Cat's on the left.

This is the question.....
When you click on a SubCat on the left, it goes to that page and the rest of the subcat's of that category disappear. Can I make them stay listed even when on the subcat's page?

This is the tags I'm using to do this in the sidebar:

CODE
<MTSubCategories>
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>"
title="<$MTCategoryDescription$>"><MTCategoryLabel></a>
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<mt:SubCatsRecurse>
</li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTSubCategories>


As well, I'm using MT 3.121

There's got to be a simple plugin or solution for this...If anyone can point me in the right direction, I'm pretty good with code...but this has stumped me.
caribou sue
I don't have a good answer because it's been a while since I've used MT 3.x, but MT 4.x is a lot easier to use as a CMS. It introduces pages and folders, and new tags that are perfect for menus like this.

CODE

<ul>
<MTSubCategories>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a>
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<mt:SubCatsRecurse>
</li>
</MTSubCategories>
</ul>
RRG
Your code does work, but still has the same problem with not showing the rest of the subcat's of the same category when in the individual subcat. Any other ideas??




QUOTE (caribou sue @ Aug 20 2008, 10:54 AM) *
I don't have a good answer because it's been a while since I've used MT 3.x, but MT 4.x is a lot easier to use as a CMS. It introduces pages and folders, and new tags that are perfect for menus like this.

CODE

<ul>
<MTSubCategories>
<MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a>
<MTElse>
<li><MTCategoryLabel>
</MTElse>
</MTIfNonZero>
<mt:SubCatsRecurse>
</li>
</MTSubCategories>
</ul>

caribou sue
Sorry, I didn't mean to include that code box -- it's just your code, so it doesn't answer your question. :-)

Check out this post:
http://forums.sixapart.com/index.php?showt...mp;#entry259575

It's more complicated than what you're trying to do, but it shows how you can continue to show higher categories (folders, in this case), while showing the category's contents.
RRG
that's funny...I looked at that pretty late at night. I'm surprised I didn't notice that is was my code. I'm not sure how to make the code work that you referenced for me on another post. I don't fully understand the MT code. I just sort of jumped in and know how it works...but can't write it. I'm more of a paste this bit here and move that there...create that and it works.

I'd like to upgrade...but I have it in my mind..."if it's not broke, don't fix". The upgrade process looks a bit complicated.

I hate to simply duplicate the subcats to get them to work (you end up with two copies of everything) but I might have to.

The sites you built look amazing. Great work!!



QUOTE (caribou sue @ Aug 21 2008, 08:27 AM) *
Sorry, I didn't mean to include that code box -- it's just your code, so it doesn't answer your question. :-)

Check out this post:
http://forums.sixapart.com/index.php?showt...mp;#entry259575

It's more complicated than what you're trying to do, but it shows how you can continue to show higher categories (folders, in this case), while showing the category's contents.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.