#if parent?has_content>
<@cms.categoryList advanced=true parentId=parent pageSize=500>
    
        
            
                - 
                    <@sys.dept id=admin.deptId>
                        <#assign dept=object/>
                    @sys.dept>
                    <#if dept?has_content&&dept.ownsAllCategory>
                        <@t.page 'status.content.1'/>
                    <#else>
                        <@t.page 'status.content.1'/>
                    #if>
                    
                        <@cms.categoryList advanced=true pageSize=500>
                            <#list page.list as a>
                                <@t.merge 'categoryIds' a.id!/>
                            #list>
                            <@sys.deptItem itemType='category' deptId=admin.deptId!'' itemIds=t.categoryIds!><#assign deptCategoryMap=map!/>@sys.deptItem>
                            <#list page.list as a>
                                <#if (deptCategoryMap[a.id?string])?has_content&&deptCategoryMap[a.id?string]>
                                    -  _src="cmsContent/list.html?parent=${a.id}"#if>>
                                        ${(a.name)!}
                                    #if>
                            <#else>
- <@t.page 'empty_directory'/>#list>
                        @cms.categoryList>
 
 
     
    
        <#include "content_list.html"/>
    
 
#if>