Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » How to add Number of Entries to Blog's Archive widget?

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 534 Views
  • phawley
    Avatar
    Community Member
    21 Posts

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

    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

  • phawley
    Avatar
    Community Member
    21 Posts

    Re: How to add Number of Entries to Blog's Archive widget? Link to this post

    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.

    534 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.