Forum Discussion
5 Replies
Sort By
Hi pradeepc If the setting is "Hide messages in this board from lists" then automatically it will exclude the message from that board.
- pradeepc8 years agoGuide
VikasB I have custom query which fetches latest posts from all the boards and I want to apply this setting in this query.
Hi pradeepc You are right. It's showing the messages from those boards even setting "Hide messages in this board from lists" is applied. Might be it's an issue on lithium side. You can raise a to confirm it.
If you want to exclude the messages from some specific and known boards than you can use the custom approach as well.<#assign excIds = ["Id1", "Id2","Id3"] /> //boards ids from which messages need to be excluded <#assign msgs= rest( "2.0", "/search?q=" + "select * from messages order by post_time desc"?url).data /> <#list msgs.items as msg> <#if excIds?seq_index_of(msg.board.id)== -1 > //do something here </#if> </#list>
pradeepc - You need to pass an additional parameter to the API, show_hidden=false
- satya8 years agoExpert
Hi pradeepc,
Hope this might help you
SELECT id, view_href, title, messages.count(*) FROM boards WHERE hidden = false
Thanks & Regards,
Srujana Satya Datla.
Related Content
- 2 years ago