<smms_extension type="smms_ext" version="1.5.0">
	<name>TITLE Metadata Module</name>
	<author>Joel Bassett</author>
	<creationDate>10/01/2010</creationDate>
	<copyright>(C) 2005-2010 Australian Quality Solutions Group. All rights reserved.</copyright>
	<license>AGPLv3 - http://www.aqsg.com.au/products/simple-meta-management-suite/licence.html</license>
	<authorEmail>joel@aqsg.com.au</authorEmail>
	<authorUrl>http://www.aqsg.com.au</authorUrl>
	<version>1.5.4 [Dragonbane]</version>
	<description>Extension to manage TITLE metadata</description>
	<files>
		<filename smms_ext="ext.title">ext.title.php</filename>
	</files>
	<smms_install>
		<database>
			<category>basic</category>
			<databasename>#__smms_title</databasename>
			<pregmatch>~&lt;title&gt;(.*)&lt;/title&gt;~Ui</pregmatch>
			<pregmatch2>~&lt;meta[^&gt;]*name=["|']title["|'][^&gt;]*content=["|'](.*)["|']\s*/&gt;~Ui</pregmatch2>
			<html>  &lt;title&gt;{VALUE}&lt;/title&gt;</html>
			<formfield>&lt;input class="inputbox" type="text" name="title" id="title" size="70" maxlength="255" value="{VALUE}" /&gt;</formfield>
			<databasefield>b.custom_title</databasefield>
			<sqlselect>b.custom_title AS custom_title, b.title AS title</sqlselect>
			<sqljoin>{DATABASENAME} AS b ON b.site_id = a.id</sqljoin>
			<sqlupdatewithvalue>UPDATE {DATABASENAME} SET custom_title = {SWITCH}, title = '{VALUE}' WHERE site_id = '{ID}'</sqlupdatewithvalue>
			<sqlupdatenovalue>UPDATE {DATABASENAME} SET custom_title = {SWITCH} WHERE site_id = '{ID}'</sqlupdatenovalue>
		</database>
	</smms_install>
    <settings>

    </settings>
    <default_values>
		<default_value name="use_defaulttitle" value="0">{CHOICELIST}</default_value>
		<default_value name="default_title" value="">&lt;input class="inputbox" type="text" name="default_title" id="default_title" size="70" maxlength="255" value="{VALUE}" /&gt;</default_value>
    </default_values>
</smms_extension>