Category Item Count

license
GPLv3
version
1.0.0
author
Can Berkol
Last Updated
16.03.2012

Outputs the total number of entries associated to a given category. The plugin offers some flexibility with a variety of filtering options.

Features

  • Limit the count by a specific category id.
  • Limit the count by a specific channel name.
  • Limit the count by entry status (accepts multiple statuses).
  • Can disregard future entries.
  • Can disregard expired entries.

Index

Installatıon

  1. Download and unpack the package.
  2. Upload the unpacked folder into your third_party folder.

Parameters

  • category_id
    Filters entry count by category id.
  • channel
    Filters entry count by channel name. You need to enter the channel url title / short name.
  • status
    Filters entry count by status. Use | character to include more than one status.
  • show_expired
    Includes expired entries within the count.
    yes,no (no is default value)
  • show_future
    Includes future entries within the count
    yes, no (default value is no)

Usage

Show count of entries for category_id 3 from "inventory" channel:

{exp:bbr_cat_itemcount category_id="3" channel="inventory"}

Show count of all entries with category_id 3:

{exp:bbr_cat_itemcount category_id="3"}

Show count of all entries within "inventory" channel:

{exp:bbr_cat_itemcount channel="inventory"}

Show count of all entries within "inventory" channel including expired entries:

{exp:bbr_cat_itemcount channel="inventory" show_expired="yes"}

Show count of all entries within "inventory" channel including futureentries:

{exp:bbr_cat_itemcount channel="inventory" show_future="yes"}