#macro dictionaryTree dictionaryId parentValue depth>
    
    <@cms.dictionaryDataList dictionaryId=dictionaryId parentValue=parentValue>
        <#list list as d>
        - 
            ${d.id.value}:${d.text}
            <#if depth gt 1>
                <@dictionaryTree dictionaryId=dictionaryId parentValue=d.id.value depth=depth-1/>
            #if>
        #list>
    @cms.dictionaryDataList>
#macro>
<@cms.dictionary id=id>
    
        - <@t.page 'dictionary.edit'/><#if object.childDepth gt 0>
<@cms.dictionaryDataList dictionaryId=object.id.id>
    <#list list as d>
- 
             ${d.id.value}:${d.text}
            <#if object.childDepth gt 1>
                <@dictionaryTree dictionaryId=id parentValue=d.id.value depth=object.childDepth-1/>
            #if>
        #list>
@cms.dictionaryDataList>
        #if>
@cms.dictionary>