Most viewed posts for a single blog

rated by 0 users
This post has 2 Replies | 1 Follower

Not Ranked
Posts 15
Points 225
scottlaw1 Posted: Mon, Jul 3 2006 11:40 AM

I'm trying to take the "Most Viewed" widget from the default blogs page and apply it to a single blog.  I haven't had much success so far.

I was hoping this thread would help, but it doesn't narrow the focus to a single blog.  Another blog post by Keyvan Nayyeri seems closer to what I'm trying to accomplish.

If anyone has actually developed a targeted "most viewed" control already,  I'd really appreciate  your guidance.

Thanks in advance,

-Scott

Scott A. Lawrence
Top 25 Contributor
Posts 2,115
Points 27,605
MVPs

I think this is the key you want:

            Query.SortBy = BlogThreadSortBy.MostViewed;

Using my blog post and this line, you can get those posts, save them into a DataSet (or any Collection object) and display them in your blog.

Maybe these is a hack to use current CS controls with some configurations to accomplish this task but I don't know it.

  • | Post Points: 20
Not Ranked
Posts 15
Points 225

Thanks Keyvan,

That did turn out to be the missing piece.  Your articles were a great help.

Scott A. Lawrence
  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com