Hi gatomonstruo , You can use the ${coreNode.id} in Freemarker to get category ID, in the custom components. Following Is the reference document to get Core Node references: https://developer.khoros.com/khoroscommunitydevdocs/reference/corenode-1 This will look something like following SELECT id, subject, view_href, post_time, kudos.sum(weight), author.login, author.id, board.title FROM messages WHERE category.id = '${coreNode.id}' AND conversation.style = 'forum' AND depth = 0 ORDER BY post_time DESC LIMIT 10 Please Give Kudos if you find this post useful and also mark this as Accepted Solution if this is the required solution. Regards Tarun Kumar