Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-09 06:02:54

fangonk
Member
Registered: 2007-07-12
Posts: 44

Category Info

Can anyone think of a way to output stats on an article category? Number of articles in a specific category, last post in a category, etc… I can’t seem to find any specific tags for these sorts of stats. While I can think of a few ways to do some of these things, they are all pretty complicated, so I am curious how other people would go about it.

Offline

#2 2008-04-09 07:07:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Category Info

There are several plugins that return the article (whatever) count for a category – see the txp resources. For the last post in a category I would use article_custom in conjunction with category="mycategory" and limit="1". You could additionally use if_different as described in this FAQ article on making an archive to loop through categories.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-04-09 08:49:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Category Info

fangonk wrote:

Number of articles in a specific category

mdn_count


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2008-04-10 06:15:49

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: Category Info

Yeah, those work pretty well. Thanks.

Offline

#5 2008-04-11 03:14:12

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: Category Info

I think you can do that with rss_suparchive as well, but perhaps it’s overkill.

Offline

Board footer

Powered by FluxBB