Forum Discussion

dhiraj_gophane's avatar
12 years ago

Getting latest blog comments from a particular category

Hi, I want a custom component which will fetch 5 latest blog comments from a particular category. Any solution?
  • Claudius's avatar
    12 years ago

    Hi,

    This REST API call should get you started

    <#assign recent_blog_articles = rest("/categories/id/${categoryID}/replies/style/blog/recent")>

     You just need to supply your category ID via 

    categoryID

    The REST API documentation will help you getting this trimmed down to only 5: http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api