Skip to content

Commit

Permalink
[TASK] Merge properties back into interface page (#1171)
Browse files Browse the repository at this point in the history
Releases: main, 12.4
  • Loading branch information
linawolf authored Sep 25, 2024
1 parent 7ad363b commit a2e63c2
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 54 deletions.
15 changes: 0 additions & 15 deletions Documentation/Interface/Examples.rst

This file was deleted.

48 changes: 39 additions & 9 deletions Documentation/Interface/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,47 @@
Backend display (interface)
===========================

.. todo:
This section is incomplete. See
https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TCA/issues/340
The `interface` section contains configuration for display and listing in
various parts of the backend. It is optional to use.

The :php`'interface'` section contains configuration for display and listing in
various parts of the backend. It is optional to use. Many tables in both the
Core and the
.. contents:: Table of Contents
:depth: 1

.. _interface-examples:

.. toctree::
Examples: Limit items in record list
====================================

Examples
Properties
Limit items in backend list to 30 in overview, 50 in single table view:

.. literalinclude:: _CodeSnippets/_interface.php
:caption: EXT:my_extension/Configuration/TCA/Overrides/tx_myextension_mytable.php

.. _interface-properties:
.. _interface-properties-maxdblistitems:

Properties of TCA section `interface`
=====================================

.. confval-menu::
:name: interface
:display: table
:type:
:Default:

.. confval:: maxDBListItems
:Path: $GLOBALS['TCA'][$table]['interface']
:type: integer
:Default: 20

Maximum number of items shown in the List module.

.. _interface-properties-maxsingledblistitems:

.. confval:: maxSingleDBListItems
:Path: $GLOBALS['TCA'][$table]['interface']
:type: integer
:Default: 100

Maximum number of items shown in the List module, if this table is listed
in extended mode (listing only a single table).
30 changes: 0 additions & 30 deletions Documentation/Interface/Properties.rst

This file was deleted.

11 changes: 11 additions & 0 deletions Documentation/Interface/_CodeSnippets/_interface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

$GLOBALS['TCA']['tx_myextension_mytable'] = array_merge_recursive(
$GLOBALS['TCA']['tx_myextension_mytable'],
[
'interface' => [
'maxDBListItems' => 30,
'maxSingleDBListItems' => 50,
],
]
);

0 comments on commit a2e63c2

Please sign in to comment.