|
5 | 5 | :Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions'] |
6 | 6 | :type: list of options |
7 | 7 |
|
8 | | - .. versionadded:: 13.0 |
9 | | - The page TSconfig option |
10 | | - :confval:`newContentElement.wizardItems.[group].elements.[name] <t3tsref:mod-wizards-newcontentelement-wizarditems>` |
11 | | - can be defined through TCA as well: |
| 8 | + .. confval:: defaultValues |
| 9 | + :name: types-creationOptions-defaultValues |
| 10 | + :Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions']['defaultValues'] |
| 11 | + :type: array |
| 12 | + :Examples: :ref:`types-example-creation-option` |
| 13 | + |
| 14 | + Default values inserted into the fields of the `tt_content` record on |
| 15 | + creation via the "New Content Element" wizard |
| 16 | + |
| 17 | + Can be overridden with page TSconfig option |
| 18 | + :confval:`tt_content_defValues <t3tsref:mod-wizards-newcontentelement-wizarditems-group-elements-name-tt-content-defvalues>`. |
| 19 | + |
| 20 | + .. confval:: enableDirectRecordTypeCreation |
| 21 | + :name: types-creationOptions-enableDirectRecordTypeCreation |
| 22 | + :Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions']['enableDirectRecordTypeCreation'] |
| 23 | + :type: bool |
| 24 | + :default: true |
| 25 | + |
| 26 | + .. versionadded:: 14.0 |
| 27 | + |
| 28 | + Record types registered via TCA are automatically displayed in the |
| 29 | + "Create new record" component in the backend module |
| 30 | + :guilabel:`Content > Records`. |
| 31 | + |
| 32 | + A record type can be removed from that component via: |
| 33 | + |
| 34 | + .. code-block:: php |
| 35 | + :caption: EXT:my_extension/Configuration/TCA/Overrides/my_table.php |
| 36 | +
|
| 37 | + $GLOBALS['TCA']['my_table']['types']['my_type']['creationOptions']['enableDirectRecordTypeCreation'] = false; |
| 38 | +
|
| 39 | + Event :php:`\TYPO3\CMS\Backend\Controller\Event\ModifyNewRecordCreationLinksEvent` |
| 40 | + can be used for more sophisticated modification of the dialogue. |
12 | 41 |
|
13 | 42 | .. confval:: saveAndClose |
14 | 43 | :name: types-creationOptions-saveAndClose |
|
17 | 46 | :default: false |
18 | 47 | :Examples: :ref:`types-example-creation-option` |
19 | 48 |
|
20 | | - .. versionadded:: 13.0 |
21 | | - |
22 | 49 | If true, clicking on the new element wizard will take the user directly |
23 | 50 | to the :guilabel:`Content > Layout` module, rather than showing the |
24 | 51 | edit form from the form engine. |
25 | 52 |
|
26 | 53 | Can be overridden with page TSconfig option |
27 | 54 | :confval:`saveAndClose <t3tsref:mod-wizards-newcontentelement-wizarditems-group-elements-name-saveandclose>`. |
28 | 55 |
|
29 | | - .. confval:: defaultValues |
30 | | - :name: types-creationOptions-defaultValues |
31 | | - :Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions']['defaultValues'] |
32 | | - :type: array |
33 | | - :Examples: :ref:`types-example-creation-option` |
| 56 | + .. confval:: title |
| 57 | + :name: types-creationOptions-title |
| 58 | + :Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions']['title'] |
| 59 | + :type: string | language reference |
34 | 60 |
|
35 | | - .. versionadded:: 13.0 |
| 61 | + .. versionadded:: 14.0 |
36 | 62 |
|
37 | | - Default values inserted into the fields of the `tt_content` record on |
38 | | - creation via the "New Content Element" wizard |
| 63 | + With this option it is possible to set an |
| 64 | + individual title for the record type, to be used as label on the |
| 65 | + creation link in the "Create new record" component. |
39 | 66 |
|
40 | | - Can be overridden with page TSconfig option |
41 | | - :confval:`tt_content_defValues <t3tsref:mod-wizards-newcontentelement-wizarditems-group-elements-name-tt-content-defvalues>`. |
| 67 | + .. code-block:: php |
| 68 | + :caption: EXT:my_extension/Configuration/TCA/Overrides/my_table.php |
| 69 | +
|
| 70 | + $GLOBALS['TCA']['my_table']['types']['my_type']['creationOptions']['title'] |
| 71 | + = 'my_extension.db.myType:title'; |
0 commit comments