Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Category Plugin

#1 2006-10-02 15:38:08

spudz
Member
Registered: 2005-12-09
Posts: 28

Category Plugin

Is there any category plugin that will give me a layout like:

Category 1 (1)
Category 2 (5)
Category 3 (9)
Category 4 (11)
Category 5 (2)

Where Category 1 represents the category name and (number) represents the amount of posts in that category.

If not, is this something people would like (ie should I develop a plugin to this)?

Cheers,
Spudz

Offline

#2 2006-10-02 16:57:47

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: Category Plugin

I use mdn_count plugin

Last edited by Niconemo (2006-10-02 17:00:20)


Nico

Offline

#3 2006-10-02 17:55:58

spudz
Member
Registered: 2005-12-09
Posts: 28

Re: Category Plugin

I sorted this issue, just in case anybody was wondering what I did, I just hacked rss_suparchive_bycat to show things the way I wanted (ie. no messy urls for category links, getting post count number inside the anchor tag and removing an id from the returned output).

Offline

#4 2006-10-02 20:16:11

cbeyls
Archived Plugin Author
From: Brussels, Belgium
Registered: 2005-09-12
Posts: 136
Website

Re: Category Plugin

Try my plugin, cbs_category_list, it’s small and it does that efficiently.

It’s more efficient to call my plugin once instead of using mdn_count for each category.
And it’s also more efficient than rss_suparchive_bycat since this plugin is bigger and does multiple SQL queries in a loop, my plugin just does one SQL query for all categories.

Last edited by cbeyls (2006-10-02 20:21:39)


My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)

Offline

  1. Index
  2. » Archives
  3. » Category Plugin

Board footer

Powered by FluxBB