SubCategories version 0.2

Here are some big updates to the SubCategories plugin:

  • Caches category hierarchy to improve rebuild times (thanks Brad)
  • Updated web interface based on changes from Wai Siow
  • Added a number of checks to interface
    • Category cannot be its own parent
    • Categories must be in the same blog
    • Permissions to edit categories must be present
    • Attempt to prevent cyclical hierarchies
  • Added/Changed the following tags:
    • MTParentCategories:
      • Added exclude_current argument, to exclude the current category from the list
    • MTParentCategory:
      • Container tag for only the immediate parent of the current category
    • MTSubCategories:
      • Added include_current argument, to include the current category in the list
    • MTSubCategoryPath:
      • Based on Brad's suggestion, this is a short-cut tag for the following template code:
<MTParentCategories glue="/"><MTCategoryLabel dirify="1"></MTParentCategories>

Download from here:

template_tags=MTParentCategory,MTSubCategoryPath

2 TrackBacks

For another project I'm working on I will be using faceted categories to organize the site's content. As a warm-up for that, I decided to take a crack at creating faceted categories here. I struggled at first wanting to stick... Read More

For another project I'm working on I will be using faceted categories to organize the site's content. As a warm-up for that, I decided to take a crack at creating faceted categories here. I struggled at first wanting to stick... Read More

1 Comment

I do not quite understand what you wants to say with "take a crack at creating faceted categories"
Could you be more specific?

Leave a comment

Recent Entries

  • Plugin Writing 101

    So, I’m planning on writing up some entries about various aspects of plugin development. While I have a couple topics already in mind, I thought...

  • The Olympics Make Me Want To Compete Again

    Every time the Olympics come around (most the summer ones) I always start to delude myself into thinking I could complete once again in the...

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

Close