Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

[FEATURE] Allow to define default search level #530

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading