// 7567 = SOLR as vanity number

page {

	headerData.7567 = TEXT
	headerData.7567 {
		typolink.parameter.data = leveluid:0
		typolink.parameter.wrap = |,7567
		typolink.forceAbsoluteUrl = 1
		typolink.returnLast = url

		wrap (
			<link rel="profile" href="http://a9.com/-/spec/opensearch/1.1/" />
			<link rel="search"
				  type="application/opensearchdescription+xml"
				  href="|"
				  title="{$plugin.tx_meilisearch.OpenSearch.shortName}"
			/>
		)
	}
}


OpenSearch = PAGE
OpenSearch {

	typeNum = 7567

	config {
		disableAllHeaderCode = 1
		additionalHeaders.10.header = Content-type:application/opensearchdescription+xml
		xhtml_cleaning = 0
		admPanel = 0
	}

	10 = TEXT
	10.insertData = 1
	10.value (
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
	<ShortName>{$plugin.tx_meilisearch.OpenSearch.shortName}</ShortName>
	<Description>{$plugin.tx_meilisearch.OpenSearch.description}</Description>
	<InputEncoding>UTF-8</InputEncoding>
	<OutputEncoding>UTF-8</OutputEncoding>

	)

	11 = TEXT
	11.insertData = 1
	11.value (
	<Image height="16" width="16" type="image/x-icon">{getIndpEnv:TYPO3_SITE_URL}favicon.ico</Image>
	)



	# link to this description file for automatic updates
	20 = TEXT
	20.insertData = 1
	20.value (
	<Url type="application/opensearchdescription+xml"
		 rel="self"
		 template="{getIndpEnv:TYPO3_SITE_URL}index.php?type={TSFE:type}&amp;L={TSFE:sys_language_uid}" />
	)



	# link the search page
	30 = TEXT
	30.insertData = 1
	30.value (
	<Url type="text/html"
		 method="GET"
		 template="{getIndpEnv:TYPO3_SITE_URL}index.php?id={$plugin.tx_meilisearch.search.targetPage}&amp;L={TSFE:sys_language_uid}
	)

	31 = TEXT
	31.value = q
	31.wrap = &amp;|={searchTerms}" />



	# link to auto suggestion provider
	40 = TEXT
	40.insertData = 1
	40.value (
	<Url type="application/x-suggestions+json"
		 rel="suggestions"
		 template="{getIndpEnv:TYPO3_SITE_URL}index.php?id={$plugin.tx_meilisearch.search.targetPage}&amp;L={TSFE:sys_language_uid}&amp;eID=tx_meilisearch_suggest&amp;format=OpenSearch
	)

	41 = TEXT
	41.value = q
	41.wrap = &amp;|={searchTerms}" />



	500 = TEXT
	500.value (

</OpenSearchDescription>
	)

}