first commit
This commit is contained in:
2
Configuration/TypoScript/OpenSearch/constants.txt
Normal file
2
Configuration/TypoScript/OpenSearch/constants.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/OpenSearch/constants.typoscript'
|
10
Configuration/TypoScript/OpenSearch/constants.typoscript
Normal file
10
Configuration/TypoScript/OpenSearch/constants.typoscript
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
plugin.tx_meilisearch.OpenSearch {
|
||||
|
||||
# cat=plugin.meilisearch: OpenSearch/10; type=text; label=Short Name: Brief title of the search, up to 16 characters.
|
||||
shortName = Website Search
|
||||
|
||||
# cat=plugin.meilisearch: OpenSearch/20; type=text; label=Description: Textual description of the search.
|
||||
description = Search this website
|
||||
|
||||
}
|
2
Configuration/TypoScript/OpenSearch/setup.txt
Normal file
2
Configuration/TypoScript/OpenSearch/setup.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/OpenSearch/setup.typoscript'
|
104
Configuration/TypoScript/OpenSearch/setup.typoscript
Normal file
104
Configuration/TypoScript/OpenSearch/setup.typoscript
Normal file
@@ -0,0 +1,104 @@
|
||||
|
||||
// 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}&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}&L={TSFE:sys_language_uid}
|
||||
)
|
||||
|
||||
31 = TEXT
|
||||
31.value = q
|
||||
31.wrap = &|={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}&L={TSFE:sys_language_uid}&eID=tx_meilisearch_suggest&format=OpenSearch
|
||||
)
|
||||
|
||||
41 = TEXT
|
||||
41.value = q
|
||||
41.wrap = &|={searchTerms}" />
|
||||
|
||||
|
||||
|
||||
500 = TEXT
|
||||
500.value (
|
||||
|
||||
</OpenSearchDescription>
|
||||
)
|
||||
|
||||
}
|
Reference in New Issue
Block a user