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!

 
Reply to this topicStart new topic
> Displaying Only The Subcategories For An Entry
Sameer Tripathy
post Aug 30 2008, 05:35 AM
Post #1





Group: Members
Posts: 1
Joined: 30-August 08
Member No.: 53,384



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
Go to the top of the page
 
+Quote Post
Su-
post Aug 30 2008, 07:31 AM
Post #2





Group: Members
Posts: 1,665
Joined: 15-June 06
Member No.: 35,860



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 post has been edited by Su-: Aug 30 2008, 07:32 AM
Go to the top of the page
 
+Quote Post

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.24.09 - 09:55 PM