Forum Discussion
Agata
Mentor
Hi,
how should the code be modified to exclude one board? I would like to used the first version that shows top 5 threads with no reply for all the boards except one board. Is this possible?
Thanks,
Agata
Claudius
13 years agoBoss
Here's the latest iteration. This widget only shows topics without replies in the current board/category focus:
<#assign message_list_title = text.format("custom.top_five_threads_with_no_replies.title") /> <#assign results_list_size = 5 /> <#assign coreNodeType = coreNode.nodeType /> <#if coreNodeType == "board"> <#assign rest_query = "/boards/id/${coreNode.id}/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size /> <#elseif coreNodeType == "category"> <#assign rest_query = "/categories/id/${coreNode.id}/search/messages?openresponse=true&sort_by=-topicPostDate&page_size=" + results_list_size /> </#if> <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="wide" numMessages="conv:"+results_list_size /> </div>
Related Content
- 4 years ago
- 8 months ago
- 13 years agoInactive User
- 3 years ago