Thanks @jamiemccardle , I directly used the constraint of content being available or not under a category. For example, if the user has a role under one category : There would be some content(Categories/Boards). Else, it would be blank/null. Code: <#assign query= "SELECT title, view_href, id FROM categories WHERE parent_category.id='categoryId' AND hidden=false ORDER BY position ASC" />
<#assign categoryContent= liql(query) />
<#if !(categoryContent?has_content)>
<script>
$("#categoryId").css("display","none");
//Can be different depending on your code
</script>
</#if> Here I used just a simple if else block to hide/unhide the category. So, if the category has no content - Do not display. Note: You would also require to assign the category id to the element in order to use the DOM.
... View more