Orchard Forums Module - latests posts on homepage?

Topics: Core, Customizing Orchard, Writing modules
Oct 23, 2014 at 5:30 PM
Hello,

I would like to display say 5 to 10 latest posts from given forum on my homepage. There is no such functionality in forums module.

Does anyone here tried something like this?

Can writing my own module for this help or do I need to modify forums module?
Oct 23, 2014 at 8:35 PM
Edited Oct 23, 2014 at 8:35 PM
For this you can easily use the Projections feature of Orchard, it is really powerful and can do exactly your requirement.

Go to queries, add a new query which filters on content type forum and your forum name. Add an order by date to the query. Create a new projection, with the just created query and give it the maximum of what you want (5 or 10).

Pretty easy, and you can also completely control how to render it.
Oct 24, 2014 at 12:09 PM
Really? Did not know it was possible. I checked this option first but must have missed it. Thanks.