Skip to content

Commit

Permalink
[TASK] Merge properties back into types page (#1163)
Browse files Browse the repository at this point in the history
Releases: main, 12.4
  • Loading branch information
linawolf authored Sep 7, 2024
1 parent 568ee22 commit 0630df6
Show file tree
Hide file tree
Showing 25 changed files with 394 additions and 398 deletions.
74 changes: 0 additions & 74 deletions Documentation/Types/Examples.rst

This file was deleted.

55 changes: 51 additions & 4 deletions Documentation/Types/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,55 @@ Multiple types can be configured, which one is selected depends on the value of
`Single Table Inheritance <https://en.wikipedia.org/wiki/Single_Table_Inheritance>`__ in Object-orientated
programming.

.. toctree::
.. contents:: Table of Contents
:depth: 1

Introduction
Examples
Properties/Index
.. _types-introduction:

Introduction
============

The ['types'] system is powerful and allows differently shaped editing forms re-using fields, having own fields
for specific forms and arranging fields differently on top of a single database table. The `tt_content` with all
its different content elements is a good example on what can be done with ['types'].

The basic ['types'] structure looks like this:

.. code-block:: php
'types' => [
'0' => [
'showitem' => 'aField, anotherField',
],
'anotherType' => [
'showitem' => 'aField, aDifferentField',
],
],
So, the basic array has a key field with type names (here '0', and 'anotherType'), with a series of possible
properties each, most importantly the :ref:`showitem <types-properties-showitem>` property.

.. _types-properties:

Properties of `types` section of TCA
====================================

.. confval-menu::
:name: types
:display: table
:type:
:Scope:

.. include:: _Properties/_*.rst.txt
:show-buttons:

.. _types-example:

Extended examples for using the `types` section of TCA
======================================================

.. contents::
:local:

.. include:: _Examples/_*.rst.txt
:show-buttons:
25 changes: 0 additions & 25 deletions Documentation/Types/Introduction.rst

This file was deleted.

16 changes: 0 additions & 16 deletions Documentation/Types/Properties/BitmaskExcludelistBits.rst

This file was deleted.

16 changes: 0 additions & 16 deletions Documentation/Types/Properties/BitmaskValueField.rst

This file was deleted.

10 changes: 0 additions & 10 deletions Documentation/Types/Properties/Index.rst

This file was deleted.

104 changes: 0 additions & 104 deletions Documentation/Types/Properties/Showitem.rst

This file was deleted.

36 changes: 0 additions & 36 deletions Documentation/Types/Properties/SubtypeValueField.rst

This file was deleted.

34 changes: 0 additions & 34 deletions Documentation/Types/Properties/SubtypesExcludelist.rst

This file was deleted.

12 changes: 0 additions & 12 deletions Documentation/Types/Properties/_creationOptions.php

This file was deleted.

Loading

0 comments on commit 0630df6

Please sign in to comment.