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

[TASK] Merge properties back into types page #1163

Merged
merged 1 commit into from
Sep 7, 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
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
Loading