solved Most Discussed Items

gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Hey Guys

This has been something I have been thinking of for a while now, a block showing the most discussed items in the front end sections, ie on site blogs page, include a block showing the 5 blogs with most comments.

But looking through the new site builder I don't see a jrComment_item_count like there is for other modules, ie profile_jrBlog_item_count.

How would one go about determining the number of comments on any a blog and then list the top 5?


updated by @garymoncrieff: 05/27/15 05:52:37AM
michael
@michael
10 years ago
7,800 posts
If you cant find what your after in the click-to-build system of the "Item List" widget, but know the template code that would fire it, paste that code into the "Template Code" widget instead.

--edit--
Looks like "Order By ___ blog_comment_count " should be what your after in "Item List" though, no?
updated by @michael: 04/21/15 11:27:29PM
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I see the problem now I was prototyping this on a test site that had no comments and blog_comment_count wasnt showing in the item list area.
michael
@michael
10 years ago
7,800 posts
solved. :)

Tags