From 4419cfa04c4f30af4506f3b3ae61fb87240c8ded Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 17 Nov 2024 18:52:56 +0100 Subject: [PATCH] Fix "itemsLimitPerTable" / "itemsLimitSingleTable" ranges and clarify interactions with TCA "maxDBListItems" / "maxSingleDBListItems" (#567) See : https://github.com/TYPO3/typo3/blob/3a42fd3456ffaee433bf2e4e45c04ba310be914e/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php#L607 https://github.com/TYPO3/typo3/blob/3a42fd3456ffaee433bf2e4e45c04ba310be914e/typo3/sysext/core/Configuration/TCA/pages.php#L64 Co-authored-by: gcrico --- Documentation/PageTsconfig/Mod/WebList.rst | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Documentation/PageTsconfig/Mod/WebList.rst b/Documentation/PageTsconfig/Mod/WebList.rst index eac62cb3..03ca0110 100644 --- a/Documentation/PageTsconfig/Mod/WebList.rst +++ b/Documentation/PageTsconfig/Mod/WebList.rst @@ -291,13 +291,19 @@ itemsLimitPerTable positive integer :aspect:`Description` - Set the default maximum number of items to show per table. - The number must be between `5` and `10000`. If below or above this range, - the nearest valid number will be used. + Set the default maximum number of items to show per table. + The number must be between `0` and `10000`. If below or above this range, + the nearest valid number will be used. + + If a value is defined in the `$TCA[]['interface']['maxDBListItems']` + of the table, it will override this TSconfig option. + For example, the `maxDBListItems` for the `pages` table is `30` by default. :aspect:`Default` 20 +.. _pageTsConfigWebList-itemsLimitPerTable-example: + :aspect:`Example` .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig @@ -317,13 +323,19 @@ itemsLimitSingleTable positive integer :aspect:`Description` - Set the default maximum number of items to show in single table view. - The number must be between `5` and `10000`. If below or above this range, - the nearest valid number will be used. + Set the default maximum number of items to show in single table view. + The number must be between `0` and `10000`. If below or above this range, + the nearest valid number will be used. + + If a value is defined in the `$TCA[
]['interface']['maxSingleDBListItems']` + of the table, it will override this TSconfig option. + For example, the `maxSingleDBListItems` for the `pages` table is `50` by default. :aspect:`Default` 100 +.. _pageTsConfigWebList-itemsLimitSingleTable-example: + :aspect:`Example` .. code-block:: typoscript :caption: EXT:site_package/Configuration/page.tsconfig