category plugin: display the number of items per category...

Creating and modifying plugins.
Post Reply
kho
Regular
Posts: 342
Joined: Fri Mar 04, 2005 8:34 pm

category plugin: display the number of items per category...

Post by kho »

Hi,

I would like to display the number of entries per category in the sidebar, like "category (number)"

How can I do this?

There are no options in the category plugin.

I using s9y 0.8.2

Thanks for help!

regards, kho
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

another useful count would be the number of views an entry has received.
Placed in the entry's footer (say).
gw
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

number of views can be done using karma plugin.
Image
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

True. Karma displays hits to the entry if it's ever viewed as an archive or extended view. But not if it's viewed as an entry on the front page or a category page.

but you have to display all the karma voting details as well. I was looking for a more simple page view count to display with the entry.
gw
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You cannot count the views on the frontpage view, as nobody can now if a visiting user really sees your article. The hits would then have no meaning at all, so it only tracks clicks. You might want to use a general statistics tracking module like awStats, modlogan or phpOpenTracker...

For changing the number of entries per category you must use serendipity 0.9 and the new "Templates/Properties of Categories" plugin.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply