caleydon.com > Add-ons > Category Count

Category Count for ExpressionEngine

Description: Displaying the number of articles assigned to each category.
Category: ExpressionEngine add-on
Author: Gabriel Schwardy, Caleydon s.r.o. - www.caleydon.com

Category Count for ExpressionEngine

Download

Legacy version download


Features

Installation

  1. Make sure, you are running ExpressionEngine version 5.x.
  2. Upload the whole category_count folder into /system/user/addons/ folder.
  3. Go into the Add-On Manager in your admin area and install it.
  4. Add code into your template - see an code example.

Changelog

Tag

{exp:category_count cat_id="7" status="open|closed" expired="yes"}

Parameters

cat_id="3"
The ID for the category that you want to output the number of entries for.

status="open|closed"
Determines the status of entries you want to count. Default setting is "open"

expired="yes"
Will include entries that have expired.

Code example

<h3>Categories</h3>
<ul>
    {exp:channel:categories channel="News" show_empty="no" style="linear"}
        <li><a href="{path='blog'}">{category_name}</a> ({exp:category_count cat_id="{category_id}" status="open" expired="yes"})</li>
    {/exp:channel:categories}
</ul>

Help us

Do you have an good idea how to improve this add-on? Don't hesitate and write me: addons [@] caleydon.com

Last update: 12/15/2018

caleydon.com © 2001 – 2019