Forum Discussion

adsk_cmgrs's avatar
adsk_cmgrs
Director
9 years ago

Recent Blog Articles Widget

We have a number of widgets setup on our community category pages which display relevant topics from forums and ideas. I'm trying to emulate the widgets to display the 3 most recent blog articles. Any thoughts based on the code used to bring in the 3 most recent ideas submitted? 

 

 

<#include "category-page-ideastation.ftl" />


<#assign topics_count = restadmin("/categories/id/" + coreNode.id + "/topics/style/idea/count").value>

<#if (topics_count?number > 0 )>

<#assign cat_obj = "/categories/id/" + coreNode.id + "/topics/style/idea/recent?restapi.response_style=view&page_size=3">

<@ideastation "no" cat_obj coreNode.id/>

</#if>

 

 

 

  • Hi adsk_cmgrs,

     

    you could use API v2 building a LIQL query to get the objects:

     

    SELECT * FROM messages WHERE id = '${coreNode.id}' ORDER BY post_time DESC LIMIT 3