Help - Search - Members - Calendar
Full Version: Displaying Only The Subcategories For An Entry
Movable Type Community Forum > Additional Resources > Tips and Tricks
Sameer Tripathy
Hi I'm new to Movable Type. My requirement is to display all the subcategories for an entry.
When I use <MTEntryCategories glue="| ">, it displays the primary category which I should not display.

The format I need to display is:
<MTEntries lastn="25">
.....

......
<Display the top level category of the primary category of the entry> I AM ABLE TO GET IT
<Display all the sub categories of the entry excluding the above category if it is available in the sub category list> THIS IS WHERE I AM STUCK UP.
</MTEntries>

Is the above possible without using a plugin as I am not allowed to install a plugin. The MT version I am using is 3.1.4

Please suggest.

Thanks,
Sameer
Su-
There's no direct way to say "give me only sub-categories." I'd guess it's just not that common.
But if you start with a regular category list snippet, and just wrap HasParentCategory around all your output, it should give the same result:
CODE
<MTEntryCategories>
<MTHasParentCategory>
    <$MTCategoryLabel$> should not be a top-level category
</MTHasParentCategory>
</MTEntryCategories>



QUOTE (Sameer Tripathy @ Aug 30 2008, 08:35 AM) *
The MT version I am using is 3.1.4

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