skylinegtr
10 years agoMentor
Custom components to show categories/title
Anyone have an example code to show the categories/Title and post count into custom component? I've tried but no luck. Example below. Thanks
"type" : "board",
"id" : "pure_internal_forum",
"href" : "/boards/pure_internal_forum",
"view_href" : "/t5/Employee-Product-Discussion/bd-p/pure_internal_forum",
"conversation_style" : "forum",
"title" : "Employee Product Discussion",
"short_title" : "Employee Product Discussion",
"description" : "",
"parent_category" : {
"type" : "category",
"id" : "forums",
"href" : "/categories/forums",
"view_href" : "/t5/Forums/ct-p/forums"
},
"root_category" : {
"type" : "category",
"id" : "forums",
"href" : "/categories/forums",
"view_href" : "/t5/Forums/ct-p/forums"
},
skylinegtr you can filter by id:
SELECT id, title, boards FROM categories WHERE id IN('forums','kb')