#macro lookupTree parentId=''>
<@_categoryList advanced=true parentId=parentId count=500>
<#list page.list as a>
<#if currentCategoryId?has_content&&a.id?string=currentCategoryId>
${a.name!}
<#else>
${a.name!}
<#if a.childIds?has_content>
#if>
#if>
<#else>
<@t.page 'empty_directory'/>
#list>
@_categoryList>
#macro>