Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to add Number of Entries to Blog's Archive widget?


Go to End


2 Posts   1614 Views

Avatar
phawley

Community Member, 21 Posts

9 April 2012 at 3:57pm

Hello all. I've been trying to add an entry count to the blog's Archive Widget, but without any success. I've tried adding COUNT in the SQL statement and moving the DISTINCT clause in to parens, but this clobbers the AS \"Month\" and AS \"Year\" needed for the actual widget. I'm just looking for a simple count of entries per each result which I can render in my sidebar:

April 2012 (3)
March 2012 (12)
February 2012 (17)

etc.

Thanks in advance for any thoughts or pointers.
Patrick

Avatar
phawley

Community Member, 21 Posts

16 April 2012 at 11:07am

Does anyone have any thoughts on this? It seems like a standard request, but I wasn't able to find any trace of it on the forum or elsewhere on the google.