first commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/DateRange/setup.typoscript'
|
@@ -0,0 +1,28 @@
|
||||
# Enable a date range facet on created field
|
||||
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
creationDateRange {
|
||||
label = Created Between
|
||||
field = created
|
||||
|
||||
type = dateRange
|
||||
|
||||
# these are the default values, you do not need to specify a dateRange configuration block if the defaults work for you
|
||||
dateRange {
|
||||
start = NOW/DAY-1YEAR
|
||||
end = NOW/DAY+1YEAR
|
||||
gap = +1DAY
|
||||
}
|
||||
}
|
||||
}
|
||||
# Load js files
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
|
||||
solr-daterange = EXT:meilisearch/Resources/Public/JavaScript/facet_daterange_controller.js
|
||||
}
|
||||
|
||||
page.includeCSS {
|
||||
solr-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/Hierarchy/setup.typoscript'
|
@@ -0,0 +1,23 @@
|
||||
# Enable a hierarchy facet on the field "rootline"
|
||||
|
||||
lib.tx_meilisearch.pagetitle = HMENU
|
||||
lib.tx_meilisearch.pagetitle {
|
||||
special = list
|
||||
special.value.current = 1
|
||||
1 = TMENU
|
||||
1 {
|
||||
NO {
|
||||
doNotLinkIt = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
pageHierarchy {
|
||||
field = rootline
|
||||
label = Rootline
|
||||
type = hierarchy
|
||||
partialName = Rootline
|
||||
}
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/NumericRange/setup.typoscript'
|
@@ -0,0 +1,25 @@
|
||||
# Enable a numericRange facet on the pidField
|
||||
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
pidRangeRange {
|
||||
field = pid
|
||||
label = Pid Range
|
||||
type = numericRange
|
||||
numericRange {
|
||||
start = 0
|
||||
end = 100
|
||||
gap = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
# Load js files
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
|
||||
solr-numericrange = EXT:meilisearch/Resources/Public/JavaScript/facet_numericrange_controller.js
|
||||
}
|
||||
|
||||
page.includeCSS {
|
||||
solr-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/Options/setup.typoscript'
|
@@ -0,0 +1,12 @@
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
author {
|
||||
label = Author
|
||||
field = author
|
||||
}
|
||||
}
|
||||
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsFiltered/setup.typoscript'
|
@@ -0,0 +1,13 @@
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
typeFiltered {
|
||||
label = Type Filtered
|
||||
field = type
|
||||
partialName = OptionsFiltered
|
||||
}
|
||||
}
|
||||
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsPrefixGrouped/setup.typoscript'
|
@@ -0,0 +1,13 @@
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
author {
|
||||
label = Author
|
||||
field = author
|
||||
partialName = OptionsPrefixGrouped
|
||||
}
|
||||
}
|
||||
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsSinglemode/setup.typoscript'
|
@@ -0,0 +1,14 @@
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
typeToggle {
|
||||
label = Type Singlemode
|
||||
field = type
|
||||
partialName = OptionsSinglemode
|
||||
keepAllOptionsOnSelection = 1
|
||||
}
|
||||
}
|
||||
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsToggle/setup.typoscript'
|
@@ -0,0 +1,13 @@
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
typeToggle {
|
||||
label = Type Toggle
|
||||
field = type
|
||||
partialName = OptionsToggle
|
||||
}
|
||||
}
|
||||
|
||||
page.includeJSFooterlibs {
|
||||
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
||||
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
|
||||
}
|
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/QueryGroup/setup.typoscript'
|
@@ -0,0 +1,56 @@
|
||||
# Enable a queryGroup facet on the field "created"
|
||||
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
age {
|
||||
label = Age
|
||||
field = created
|
||||
|
||||
type = queryGroup
|
||||
queryGroup {
|
||||
|
||||
week {
|
||||
query = [NOW/DAY-7DAYS TO *]
|
||||
}
|
||||
|
||||
month {
|
||||
query = [NOW/DAY-1MONTH TO NOW/DAY-7DAYS]
|
||||
}
|
||||
|
||||
halfYear {
|
||||
query = [NOW/DAY-6MONTHS TO NOW/DAY-1MONTH]
|
||||
}
|
||||
|
||||
year {
|
||||
query = [NOW/DAY-1YEAR TO NOW/DAY-6MONTHS]
|
||||
}
|
||||
|
||||
old {
|
||||
query = [* TO NOW/DAY-1YEAR]
|
||||
}
|
||||
}
|
||||
|
||||
renderingInstruction = CASE
|
||||
renderingInstruction {
|
||||
key.field = optionValue
|
||||
|
||||
default = TEXT
|
||||
default.field = optionValue
|
||||
|
||||
week = TEXT
|
||||
week.value = Less than one week
|
||||
|
||||
month = TEXT
|
||||
month.value = 1 week to 1 month :)
|
||||
|
||||
halfYear = TEXT
|
||||
halfYear.value = 1 to 6 months
|
||||
|
||||
year = TEXT
|
||||
year.value = 6 months to 1 year
|
||||
|
||||
old = TEXT
|
||||
old.value = over a year
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user