schussman.com logo

Plugin: ats_master_category_list

With the release of Txp g1.19, the capacity for sub-categories is included, but methods for presenting categories have not been refined to accompany this feature. This plugin consists of a small change to the standard category_list function that allows it to optionally display only master or top-level categories (ie, it excludes subcategories). It’s really just a temporary measure until better display methods are produced, but it works for now to keep the clutter of sub-categories from, for example, the front page of a site.

It can now be used as a drop-in replacement for txp:category_list, as it now has a flag for turning the root-level category restriction on or off, and it includes standard wrap and break tags.

Thanks to Robert Brook for his plugin generator.

Download ats_master_category_list