[comment]
ui_name: category_vertical_tree
ui_type: component
ui_class: vertical
ui_group: Navigation
ui_label: Vertical category list for the Menu-editor and tree-database

menu_set:
	advanced: 1
	db: tree
	help: Defines which menu-set is displayed on this page
	label: Menu set
	lookup: mgroup
	type: select

level_spacing:
	advanced: 1
	code: level_spacing
	help: Select the amount of spaces you want your subcategories to be indented
	label: Select indent
	options: 1=1 space,2=2 spaces,3=3 spaces,4=4 spaces,5=5 spaces,6=6 spaces,7=7 spaces,8=8 spaces,9=9 spaces,10=10 spaces
	type: select

subcategory_dot:
	advanced: 1
	code: subcategory_dot
	help: Select if you want a dot () before each subcategory.
	label: Select dot
	options: 0=No,1=Yes
	type: select

timed:
	advanced: 1
	code: timed
	help: Makes more efficient for large/busy catalogs
	label: Use timed build
	options: 0=No, 5=5 minutes, 10=10 minutes, 20=20 minutes, 60=60 minutes, 1440=Daily
	type: select

[/comment]

[seti dot][control subcategory_dot][/seti]

<!-- BEGIN COMPONENT [control component category_vertical_tree] -->
  <br>
  <table width="90%" align="center">
    <tr><td align="left" valign="top">
    [tree
        table=tree
        sort=code
        spacing="[control level_spacing]"
        spacer="&nbsp;"
        start="[control menu_set]"
        master=parent_fld
        subordinate=code
        full=1]
        [if-item-param !mv_level]
        <table cellpadding="2" cellspacing="0" border="0">
          <tr>
            <td valign="top" class="categorybar" colspan="2" align="left">
              <b>[if-item-param page]<a href="[area href='[item-param page]' form=|[item-param form]|]" class="barlink">[item-param name]</a>[else][item-param name][/else][/if-item-param]</b>
            </td>
          </tr>
        </table>
        [/if-item-param]

        [if-item-param mv_level]
        <table cellpadding="0" cellspacing="1">
          <tr>
            <td valign="top" class="categorybar">
            [item-param mv_spacer][if scratch dot]&#149;[/if]
            </td>
            <td valign="top">
                [if-item-param page]<a href="[area href='[item-param page]' form=|[item-param form]|]"
class="barlink">[item-param name]</a>[else][item-param
name][/else][/if-item-param]<BR>
            </td>
          </tr>
        </table>
        [/if-item-param]
    [/tree]
    </td></tr>
  </table>
  <br>
<!-- END COMPONENT [control component category_vertical_tree] -->
