Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 12.4] [TASK] Merge properties back into interface page #1172

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
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
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,
],
]
);
Loading