Forum Discussion
VikasB
3 years agoBoss
Kudos, comments counts and last comment date can be added with some customozation.
You can add these selectors(conversation.last_post_time, conversation.messages_count) in getMassages API call.
<#assign articles = getMessages(pageSize, 0, "id, subject, view_href,conversation.last_post_time, conversation.messages_count", whereClause, "kudos.sum(weight) DESC") />
Inside the <#list>, get kudos count for every messaes as in API V2, we can not get the kudos count without passing message id. Here is the API to get it
SELECT * FROM kudos WHERE message.id = 'article.id'
Now you can use these new values inside the <#list> to show with every message hyperlink in the list.
You can not use two constraints(Kudos and Comments) in WHERE clouse.
Related Content
- 11 months ago