<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="1.0.0" client="site" method="upgrade">
	<identifier>mod://site/docman_documents</identifier>
	<name>mod_docman_documents</name>
	<creationDate>June 2013</creationDate>
	<author>Joomlatools</author>
	<copyright>Copyright (C) 2011 - 2013 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.0.0RC3</version>
	<description>MOD_DOCMAN_DOCUMENTS_XML_DESCRIPTION</description>
	<files>
		<filename module="mod_docman_documents">mod_docman_documents.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" class="select2-listbox" label="MOD_DOCMAN_DOCUMENTS_FIELD_PAGE_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_PAGE_DESC" multiple="true" size="10" default="0"/>
                <field name="category" type="docmancategories" key_field="id" multiple="true" size="10" default="0" label="MOD_DOCMAN_DOCUMENTS_FIELD_CATEGORY_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_CATEGORY_DESC"/>
                <field name="created_by" type="docmanusers" multiple="true" label="MOD_DOCMAN_DOCUMENTS_FIELD_OWNER_LABEL"/>
				<field name="limit" type="text" default="10" label="MOD_DOCMAN_DOCUMENTS_FIELD_LIMIT_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_LIMIT_DESC"/>

				<field name="sort" type="list" default="created_on" label="MOD_DOCMAN_DOCUMENTS_FIELD_SORT_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_SORT_DESC">
					<option value="tbl.created_on">MOD_DOCMAN_DOCUMENTS_CREATION_DATE</option>
					<option value="tbl.modified_on">MOD_DOCMAN_DOCUMENTS_MODIFIED_DATE</option>
					<option value="tbl.title">MOD_DOCMAN_DOCUMENTS_ALPHABETICALLY</option>
				</field>
				<field name="direction" type="list" default="asc" label="MOD_DOCMAN_DOCUMENTS_FIELD_DIRECTION_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_DIRECTION_DESC">
					<option value="asc">MOD_DOCMAN_DOCUMENTS_ASCENDING</option>
					<option value="desc">MOD_DOCMAN_DOCUMENTS_DESCENDING</option>
				</field>
                <field name="include_child_categories" type="radio" default="1" label="MOD_DOCMAN_DOCUMENTS_FIELD_INCLUDE_CHILD_CATEGORIES" description="MOD_DOCMAN_DOCUMENTS_FIELD_INCLUDE_CHILD_CATEGORIES_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>
                <field name="show_icon" type="radio" default="1" label="MOD_DOCMAN_DOCUMENTS_FIELD_SHOW_ICON_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_SHOW_ICON_DESC">
                    <option value="1">JYES</option>
                    <option value="0">JNO</option>
                </field>
				<field name="show_category" type="radio" default="0" label="MOD_DOCMAN_DOCUMENTS_FIELD_SHOW_CATEGORY_LABEL" description="MOD_DOCMAN_DOCUMENTS_FIELD_SHOW_CATEGORY_DESC">
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>
			</fieldset>
			<fieldset name="advanced">

				<field name="layout" type="modulelayout" 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>
