Forum Discussion
Hi Kaela,
I am new to the lithosphere but found your post to be exactly what I am looking for - want to enable unanswered thread widget on a particular board. Below is my current component code, but can you please tell me where the board parameter string would go?
<#assign message_list_title = text.format("custom.top_five_threads_with_no_replies.title") />
<#assign results_list_size = 5 />
<#assign rest_query = "/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size />
<div class="lia-panel lia-panel-standard top-five-threads-with-no-replies-wrapper">
<@component id="forums.widget.message-list-panel" title="${message_list_title}" messages="rest_v1:"+rest_query style="slim" numMessages="conv:"+results_list_size />
</div>
Hi sgyani,
Let's assume that your board id is "board123".
Right now, your search query looks like this:
<#assign rest_query = "/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size />
This uses the "CommunitySearchContext" to search. To use a "NodeSearchContext", you could do something like this (assuming board id "board123"):
<#assign rest_query = "/boards/id/board123/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size />
Related Content
- 4 years ago
- 8 months ago
- 13 years agoInactive User
- 3 years ago