meilisearch/Configuration/TypoScript/OpenSearch/setup.typoscript

100 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-04-17 00:26:33 +02:00
// 7567 = SOLR as vanity number
page {
2021-04-24 04:44:44 +02:00
headerData.7567 = TEXT
headerData.7567 {
typolink.parameter.data = leveluid:0
typolink.parameter.wrap = |,7567
typolink.forceAbsoluteUrl = 1
typolink.returnLast = url
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
wrap (
2021-04-17 00:26:33 +02:00
<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}"
/>
2021-04-24 04:44:44 +02:00
)
}
2021-04-17 00:26:33 +02:00
}
OpenSearch = PAGE
OpenSearch {
2021-04-24 04:44:44 +02:00
typeNum = 7567
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
config {
disableAllHeaderCode = 1
additionalHeaders.10.header = Content-type:application/opensearchdescription+xml
xhtml_cleaning = 0
admPanel = 0
}
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
10 = TEXT
10.insertData = 1
10.value (
2021-04-17 00:26:33 +02:00
<?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>
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
11 = TEXT
11.insertData = 1
11.value (
2021-04-17 00:26:33 +02:00
<Image height="16" width="16" type="image/x-icon">{getIndpEnv:TYPO3_SITE_URL}favicon.ico</Image>
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
# link to this description file for automatic updates
20 = TEXT
20.insertData = 1
20.value (
2021-04-17 00:26:33 +02:00
<Url type="application/opensearchdescription+xml"
rel="self"
template="{getIndpEnv:TYPO3_SITE_URL}index.php?type={TSFE:type}&amp;L={TSFE:sys_language_uid}" />
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
# link the search page
30 = TEXT
30.insertData = 1
30.value (
2021-04-17 00:26:33 +02:00
<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}
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
31 = TEXT
31.value = q
31.wrap = &amp;|={searchTerms}" />
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
# link to auto suggestion provider
40 = TEXT
40.insertData = 1
40.value (
2021-04-17 00:26:33 +02:00
<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
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
41 = TEXT
41.value = q
41.wrap = &amp;|={searchTerms}" />
2021-04-17 00:26:33 +02:00
2021-04-24 04:44:44 +02:00
500 = TEXT
500.value (
2021-04-17 00:26:33 +02:00
</OpenSearchDescription>
2021-04-24 04:44:44 +02:00
)
2021-04-17 00:26:33 +02:00
}