Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

Show latest featured thread on the home page

I need to show the 1 latest featured topic on the community home page using the rest api. I am using this call but what it does is always show the old topic when I use the page size one.

 

/restapi/vc/threads/featured/nested

 

Is there a way I can always get the latest featured topic in the rest response.

 

I reffered this document https://community.lithium.com/t5/Community-display/Display-featured-topics-on-community-pages/ta-p/108557

 

 

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)

    Hi Gursimrat,

     

    it is a known issue that featured threads are sorted randomly (i.e. not following any date order), it is under fixing.

     

    some workaround could be to hardcode the message id in a custom content (updatable in production), or write a macro fucntion which reads all featured articles and find the latest one.