<?xml version="1.0" encoding="utf-8"?>
<extension type="module" client="site" method="upgrade">
	<name>mod_tags_similar</name>
	<author>Joomla! Project</author>
	<creationDate>January 2013</creationDate>
	<copyright>(C) 2013 Open Source Matters, Inc.</copyright>
	<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.1.0</version>
	<description>MOD_TAGS_SIMILAR_XML_DESCRIPTION</description>
	<namespace path="src">Joomla\Module\TagsSimilar</namespace>
	<files>
		<filename module="mod_tags_similar">mod_tags_similar.php</filename>
		<folder>src</folder>
		<folder>tmpl</folder>
	</files>
	<languages>
		<language tag="en-GB">language/en-GB/mod_tags_similar.ini</language>
		<language tag="en-GB">language/en-GB/mod_tags_similar.sys.ini</language>
	</languages>
	<help key="JHELP_EXTENSIONS_MODULE_MANAGER_TAGS_SIMILAR" />
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="maximum"
					type="integer"
					label="MOD_TAGS_SIMILAR_MAX_LABEL"
					default="5"
					filter="integer"
					first="1"
					last="20"
					step="1"
				/>

				<field
					name="matchtype"
					type="list"
					label="MOD_TAGS_SIMILAR_FIELD_MATCHTYPE_LABEL"
					description="MOD_TAGS_SIMILAR_FIELD_MATCHTYPE_DESC"
					default="any"
					validate="options"
					>
					<option value="all">MOD_TAGS_SIMILAR_FIELD_ALL</option>
					<option value="any">MOD_TAGS_SIMILAR_FIELD_ONE</option>
					<option value="half">MOD_TAGS_SIMILAR_FIELD_HALF</option>
				</field>

				<field
					name="ordering"
					type="list"
					label="MOD_TAGS_SIMILAR_FIELD_ORDERING_LABEL"
					default="count"
					validate="options"
					>
					<option value="count">MOD_TAGS_SIMILAR_FIELD_ORDERING_COUNT</option>
					<option value="random">MOD_TAGS_SIMILAR_FIELD_ORDERING_RANDOM</option>
					<option value="countrandom">MOD_TAGS_SIMILAR_FIELD_ORDERING_COUNT_AND_RANDOM</option>
				</field>
			</fieldset>
			<fieldset name="advanced">
				<field
					name="layout"
					type="modulelayout"
					label="JFIELD_ALT_LAYOUT_LABEL"
					class="form-select"
					validate="moduleLayout"
				/>

				<field
					name="moduleclass_sfx"
					type="textarea"
					label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
					rows="3"
					validate="CssIdentifier"
				/>

				<field
					name="owncache"
					type="list"
					label="COM_MODULES_FIELD_CACHING_LABEL"
					default="1"
					filter="integer"
					validate="options"
					>
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>

				<field
					name="cache_time"
					type="number"
					label="COM_MODULES_FIELD_CACHE_TIME_LABEL"
					default="900"
					filter="integer"
				/>
			</fieldset>
		</fields>
	</config>
</extension>
