Forum Discussion
VikasB
8 years agoBoss
ronaksomani irach15 There is no such query which can help you out to exclude specific board/category. But alternatively, you can achieve it by using change in community structure.
Option 1:
Like you can create 2 categories i.e. Category1 & Category2.
Category1 will contain boards which you want to exclude. Category2 will contain rest of the boards.
Now you can use the query
Select * from message where category.id='Category2'
Option 2:
<#assign excIds = ["Id1", "Id2","Id3"] />
<#assign boards = rest( "2.0", "/search?q=" + "select * from boards"?url).data />
<#list boards.items as board>
<#if excIds?seq_index_of(board.id)== -1 >
//do something here
</#if>
</#list>
Related Content
- 5 months ago
- 2 years ago
- 2 years ago