Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
how do i show amount of articles in a category
when using comment invite tag, the out put is for example “comment(4)”. This means there are 4 comment in the article.
what i want to do is display a catergory list. and behind each item show the amount of articles there are in that catergory or sub-catergory.
example ;
i have a category called “Activities”
i have acouple sub-categ. under this categ. ( homework, sports, school, work, amusement etc)
now i display the list like this :
- homework (7)
- sports (23)
- school (19)
- work (54)
- amusement (9)
the numbers after each sub-categ, shows the amount of articles there are in that sub-categ. how do i get this done ???
hope i have been clear enough :)
thanx in advance
Last edited by anand (2006-05-11 10:33:16)
Offline
Re: how do i show amount of articles in a category
You need the mdn_count plugin available <a href=“http://mnorton.chaosnet.org/files/mdn_count.txt”>here</a>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: how do i show amount of articles in a category
ok i tried it , only it does not work
i have made a section called “activiteiten”
i have a category made called “activiteiten”
and sub-cat : hindi, dansles, etc
the way i call the list is as following ; <txp:category_list break="li" category="activiteiten" />
it display it as follow check site http://samaanta.project-8.nl/activiteiten/?pid=4
look at the left under Categorien:
you see the list displayed
my question is how do i use the plugin tag which is “ <txp:mdn_count [section="sectionname"] [category="categoryname"] />
“
it the textpatern output tag
the help file from the plugin is not much of a help ..
can some one help me or poin to the right direction …
thanx very much
(edited to show the code. -Els)
Last edited by els (2006-05-11 14:17:01)
Offline
#4 2006-05-11 14:21:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: how do i show amount of articles in a category
You have to use either ‘category’ or ‘section’. So <txp:mdn_count section="activiteiten" />
will output the number of articles in section ‘activiteiten’. And <txp:mdn_count category="activiteiten" />
will output the number or articles in category ‘activiteiten’.
Offline