Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
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
Re: Category Info
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
Re: Category Info
I think you can do that with rss_suparchive as well, but perhaps it’s overkill.
Offline
Pages: 1