IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

> Display Category Links Under A Parent Category
deanloh
post Oct 8 2005, 04:20 AM
Post #1





Group: Members
Posts: 12
Joined: 26-May 02
Member No.: 509



I have used MTLookup and scanned through hundreds of results still I failed to find what I'm looking for. If any of you have implemented this before, please share your technique.

I have a structure like this:

Hyperlinks
-- Personal
---- Books
---- Websites
---- Blogs
---- and the list goes on
-- Professional
---- Account Management
---- Project Management
---- Design
---- and the list goes on

Now I need MT to generate the list of category links under Personal only (Books, Websites etc) and output it to this:

CODE
<ul>
<li><a href="<books category archive>">Books</li>
<li><a href="<website category archive>">Website</li>
<li><a href="<blogs category archive>">Blogs</li>
<li>... and the list goes on
</ul>


I have tried MTFilterCategories plugin, problem is, I had to specify what categories to be included, which can be troublesome as I'll have to edit the code whenever I add new subcategories in future, same goes with the exclude function.

I'm just wondering: isn't there a way to make MT generate the list of subcategories under a specific main category only?

In short, I wish the following codes...

CODE
<ul>
 <MTCategories show_empty="1">
  <li><a href="<$MTCategoryArchiveLink$>">
  <$MTCategoryLabel$></a> (<$MTCategoryCount$>)</li>
 </MTCategories>
</ul>


can become this:

CODE
<ul>
 <MTCategories show_empty="1" category="Personal">
  <li><a href="<$MTCategoryArchiveLink$>">
  <$MTCategoryLabel$></a> (<$MTCategoryCount$>)</li>
 </MTCategories>
</ul>


Help?
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.25.09 - 03:23 AM