Skip to content

Commit

Permalink
[FEATURE] Allow to define default search level
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jun 21, 2024
1 parent c34e312 commit 9e05d89
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Documentation/PageTsconfig/Mod/WebList.rst
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,42 @@ searchLevel.items
3 = EXT:core/Resources/Private/Language/locallang_core.xlf:labels.searchLevel.3
4 = EXT:core/Resources/Private/Language/locallang_core.xlf:labels.searchLevel.4
}
.. index::
searchLevel.items
Items; Search level

.. _pageTsConfigWebList-searchLevel-default:

searchLevel.default
===================

.. confval:: searchLevel.default
:name: mod-web-list-searchLevel-default
:type: integer

.. versionadded:: 13.2

This option allows to define one of the available level options
as the default level to use.

When searching for records in the :guilabel:`Web > List` module as well as
the database browser, it is possible to select the search levels (page tree
levels to respect in the search).

An editor is therefore able to select between the current page, a couple of
defined levels (e.g. 1, 2, 3) as well as the special "infinite levels".

Those options can already be extended using the TSconfig option
:confval:`mod-web-list-searchLevel-items`.

.. _pageTsConfigWebList-searchLevel-default-example:

Example: Set the default search level to "infinite levels"
----------------------------------------------------------

.. code-block:: typoscript
:caption: EXT:my_sitepackage/Configuration/page.tsconfig
mod.web_list.searchLevel.default = -1

0 comments on commit 9e05d89

Please sign in to comment.