AnsweredAssumed Answered

Categories in template

Question asked by ale_carraro on Sep 17, 2007
Latest reply on Sep 27, 2007 by ale_carraro
I need to list files contained in a specific category.

I wrote this template:
 <#list classification.getRootCategories("cm:generalclassifiable") as n>
   ${n.name}<br>
  <ul>
  <#list n.categoryMembers as i>
    <li>${i.name}</li>
  </#list>
  </ul>

</#list>
but now instead of looping through all root categories, I have to specialize it for a particular, hardcoded category. But I couldn't find a way to query categories by name or by path in Javascript Api. Is there a way?

Outcomes