<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="1.0.0" client="site" method="upgrade">
	<identifier>mod://site/docman_categories</identifier>
	<name>mod_docman_categories</name>
	<creationDate>January 2016</creationDate>
	<author>Joomlatools</author>
	<copyright>Copyright (C) 2011 - 2014 Timble CVBA (http://www.timble.net)</copyright>
    <license>GNU GPLv3 - http://www.gnu.org/licenses/gpl.html</license>
	<authorEmail>support@joomlatools.com</authorEmail>
	<authorUrl>www.joomlatools.com</authorUrl>
	<version>2.1.5</version>
	<description>MOD_DOCMAN_CATEGORIES_XML_DESCRIPTION</description>
	<files>
		<filename module="mod_docman_categories">mod_docman_categories.php</filename>
		<filename>html.php</filename>
		<folder>tmpl</folder>
        <folder>language</folder>
	</files>

	<config>
		<fields name="params" addfieldpath="/components/com_docman/forms/fields">
			<fieldset name="basic">
                <field name="page" type="docmanpages" deselect="true" label="MOD_DOCMAN_CATEGORIES_FIELD_PAGE_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_PAGE_DESC" types="list,userlist" default="">
                    <option value="-1">ACTIVE_MENU_ITEM</option>
                </field>

                <field name="parent" type="docmanpagecategories" tree="true" deselect="true" label="MOD_DOCMAN_CATEGORIES_FIELD_CATEGORY_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_CATEGORY_DESC" default=""/>

                <field name="own" type="docmanown" label="MOD_DOCMAN_CATEGORIES_FIELD_SHOW_OWN_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_SHOW_OWN_DESC" class="btn-group" default="0">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>

                <field name="created_by" type="docmanusers" multiple="true" label="MOD_DOCMAN_CATEGORIES_FIELD_OWNER_LABEL"/>

				<field name="level" type="text" default="" label="Level of subcategories" description="Leave blank for all subcategories"/>

                <field name="limit" type="text" default="10" label="MOD_DOCMAN_CATEGORIES_FIELD_LIMIT_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_LIMIT_DESC"/>

                <field name="sort" type="list" default="custom" label="MOD_DOCMAN_CATEGORIES_FIELD_SORT_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_SORT_DESC">
                    <option value="title">JGLOBAL_TITLE_ALPHABETICAL</option>
                    <option value="created_on">JGLOBAL_OLDEST_FIRST</option>
                    <option value="custom">JFIELD_ORDERING_LABEL</option>
                </field>
                <field name="show_icon" type="radio" default="1" class="btn-group" label="MOD_DOCMAN_CATEGORIES_FIELD_SHOW_ICON_LABEL" description="MOD_DOCMAN_CATEGORIES_FIELD_SHOW_ICON_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>
			</fieldset>
			<fieldset name="advanced">

				<field name="layout" type="modulelayout" default="_:default.html" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC"/>

				<field name="moduleclass_sfx" type="text" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC"/>

				<field name="cache" type="list" default="1" label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC">
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>

				<field name="cache_time" type="text" default="900" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC"/>

                <field name="cachemode" type="hidden" default="itemid">
                    <option value="itemid"/>
                </field>

			</fieldset>
		</fields>
	</config>
</extension>
