Pull with all subcategories of a main category: eg: Teams:

If you specify the unique key (name) of parent category, you can return a list of all subcategories.

  1. #set($catList = $categories.getChildrenCategoriesByKey('teams'))  
  2. #foreach($category in $catList)  
  3.     #set($query = "$!{query} c${category.inode}c:on")  
  4. #end  
  5.   
  6. $dotcontent.pull("+type:content +live:true +deleted:false +structureInode:5* +($query)","10","" )  
comments powered by Disqus