2021-04-17 00:26:33 +02:00
|
|
|
# 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 {
|
2021-04-17 21:20:54 +02:00
|
|
|
meilisearch-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
|
|
|
|
meilisearch-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
|
|
|
|
meilisearch-daterange = EXT:meilisearch/Resources/Public/JavaScript/facet_daterange_controller.js
|
2021-04-17 00:26:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
page.includeCSS {
|
2021-04-17 21:20:54 +02:00
|
|
|
meilisearch-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
|
2021-04-17 00:26:33 +02:00
|
|
|
}
|