<inp2:m_XMLTemplate/>
<inp2:m_DefineElement name="category">
	<inp2:m_if check="Field" field="CachedDescendantCatsQty">
		<folder
			name="<inp2:Field name='Name'/>"
			href="<inp2:CategoryLink template='catalog/catalog' pass='m' m_opener='r'/>"
			icon="<inp2:c_ModulePath module='core'/>img/icons/icon24_section<inp2:m_if check='FieldEquals' name='CreatedBySystem' value='1'>_system</inp2:m_if>.png"
			onclick="checkCatalog(<inp2:m_if check="Field" name="SymLinkCategoryId" db="db"><inp2:Field name="SymLinkCategoryId" db="db"/><inp2:m_else/><inp2:Field name='CategoryId' db="db"/></inp2:m_if>, '<inp2:GetModulePrefix/>')"
			load_url="<inp2:CategoryLink pass='m'/>">
		</folder>
	<inp2:m_else/>
		<item
			href="<inp2:CategoryLink template='catalog/catalog' pass='m' m_opener='r'/>"
			icon="<inp2:c_ModulePath module='core'/>img/icons/icon24_section<inp2:m_if check='FieldEquals' name='CreatedBySystem' value='1'>_system</inp2:m_if>.png"
			onclick="checkCatalog(<inp2:m_if check="Field" name="SymLinkCategoryId" db="db"><inp2:Field name="SymLinkCategoryId" db="db"/><inp2:m_else/><inp2:Field name='CategoryId' db="db"/></inp2:m_if>, '<inp2:GetModulePrefix/>')"><inp2:Field name="Name"/></item>
	</inp2:m_if>
</inp2:m_DefineElement>
<tree>
<inp2:c_PrintList render_as="category" per_page="-1"/>
</tree>