Creating a Custom Component for a Forum or Blog Page
Is it possible to create a custom component which list the most recent posts from one particular Forum pgae or Blog Page.
For example, in our community we have a Events forum, which has discussions related to events. I want to create a custom component t place on the Community landing page, which lists just the most recent posts from this Events page.
Please advise.
Yes, you can create a custom component to do this. First you will need to use the REST API to get the most recent threads from your events board. To get blog articles I would suggest using the topics call
This way your response will always get root blog articles, not comments. One thing of note it is that you will specify the board id of the blog or forum you want to pull data from. Here is an example from this board:
http://lithosphere.lithium.com/restapi/vc/boards/id/studio/topics/recent?page_size=5
After you have your data, you will need to loop through the responses and write them out the to page.
You can see a longer example here: http://lithosphere.lithium.com/t5/developers-discussion/Latest-3-blog-articles-Freemarker/m-p/23884