Mdavis399
4 years agoContributor
Help with Editing a Component with Freemarker
Hi everyone, I need help using the Freemarker code in order to edit one of my custom components. Following the steps outlined in this tutorial, I was able to write a component that retrieved and d...
- 4 years ago
Hi Mdavis399 , you should be able to increase the number of posts displaying by increasing page_size=1 to page_size=3 or page_size=5
To make the component dynamic and dependent on the board it's loading in, you can used coreNode.id to retrieve the blog id and load it as a variable, so:
<#assign blogId = coreNode.id />
and then:
<#assign recent= rest("/boards/id/${blogId}/topics/recent?page_size=5").messages />
I think that's right anyway 😊