Inactive User
13 years agoDisplay Forum Messages in a Custom Component
I'm trying to get the most recent messages from a specific forum to display in a custom component on a category page. I assume there is some way to do this with Freemarker/rest? I just can't seem to find another post on it. Thanks.
Hi jlutterloh,
To have the message body returned as part of the response for a message, there's an additional parameter you need to include as part of your call:
restapi.format_detail=full_list_element
For example:
<#list rest("boards/id/[board-id]/posts/recent?page_size=3&restapi.format_detail=full_list_element").messages.message as message>