The code below lists categories and the boards within them.
<#assign category = rest("2.0","/search?q=" + "SELECT id, title, boards FROM categories"?url).data.items![] />
<#list category as category>
<h2>${category.title}</a></h2>
<#assign board = rest("2.0","/search?q=" + category.boards.query?url).data.items![] />
<ul>
<#if board?size gt 0>
<#list board as board>
<li><a href="${board.view_href}">${board.title}</a></li>
</#list>
<#else>
<li>No boards in this category</li>
</#if>
</#list>
It shows the following:
Knowledge & Support
-Customer Knowledge Base
- -Customer Product Ideas
-Partner Knowledge Base
-Internal Knowledge Base
-TSE Notes
Forums
-Customer Product Discussion
-Customer Tools, Tips & Tricks
-Customer General Discussion
-Partner Forum
-Employee Product Discussion
-Employee Social Discussion
-TSE Discussion
-SQL Experts Forum
Idea Exchange
Internal Idea Exchange
@SupportOps
Blogs
-Ben's Support Sermon
-Support News, Process, and Announcements
-Bartz Blog
If I only want the categories for the Forums or Knowledge and Support? How can I accomplish this?