Remove docs for WAGTAILSEARCH_RESULTS_TEMPLATE, WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX

The templates they would override have been removed from our search app, and copies placed in the project template.
pull/7225/head
Thibaud Colas 2021-06-28 11:07:20 +01:00
rodzic 86b84a2010
commit 55fe295346
2 zmienionych plików z 0 dodań i 14 usunięć

Wyświetl plik

@ -344,10 +344,6 @@ These two files should reside in your project directory (``myproject/myproject/`
# which welcomes users upon login to the Wagtail admin.
WAGTAIL_SITE_NAME = 'My Project'
# Override the search results template for wagtailsearch
# WAGTAILSEARCH_RESULTS_TEMPLATE = 'myapp/search_results.html'
# WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX = 'myapp/includes/search_listing.html'
# Replace the search backend
#WAGTAILSEARCH_BACKENDS = {
# 'default': {

Wyświetl plik

@ -58,16 +58,6 @@ Search
Define a search backend. For a full explanation, see :ref:`wagtailsearch_backends`.
``WAGTAILSEARCH_RESULTS_TEMPLATE``, ``WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX``
---------------------------------------------------------------------------
.. code-block:: python
WAGTAILSEARCH_RESULTS_TEMPLATE = 'myapp/search_results.html'
WAGTAILSEARCH_RESULTS_TEMPLATE_AJAX = 'myapp/includes/search_listing.html'
Override the templates used by the search front-end views.
.. _wagtailsearch_hits_max_age:
``WAGTAILSEARCH_HITS_MAX_AGE``