Skip to content

Commit

Permalink
[FEATURE] Add types > creationOptions > defaultValues
Browse files Browse the repository at this point in the history
Related: TYPO3-Documentation/Changelog-To-Doc#801
Resolves: #1161
Releases: main
  • Loading branch information
linawolf committed Sep 8, 2024
1 parent b4cb146 commit 5c82faf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Documentation/Types/_CodeSnippets/_creationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
'creationOptions' => [
'saveAndClose' => true,
],
'defaultValues' => [
'bodytext' => '<p>some text</p>',
],
],
],
]
Expand Down
19 changes: 17 additions & 2 deletions Documentation/Types/_Properties/_CreationOptions.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,22 @@
:default: false
:Examples: :ref:`types-example-creation-option`

.. versionadded:: 13.0

If true, clicking on the new element wizard directs the user back to
the page module directly instead of showing the edit form from the form
engine. Can be overridden with page TSconfig option
:confval:`saveAndClose <t3tsconfig:mod-wizards-newcontentelement-wizarditems-group-elements-name-saveandclose>`.

.. confval:: defaultValues
:name: types-creationOptions-defaultValues
:Path: $GLOBALS['TCA'][$table]['types'][$type]['creationOptions']['defaultValues']
:type: array
:Examples: :ref:`types-example-creation-option`

.. versionadded:: 13.0

If true, clicking on the new element wizard directs the user back to
the page module directly instead of showing the edit form from the form
engine. Can be overridden with page TSconfig
:confval:`newContentElement.wizardItems.[group].elements.[name] <t3tsconfig:mod-wizards-newcontentelement-wizarditems>`.
engine. Can be overridden with page TSconfig option
:confval:`tt_content_defValues <t3tsconfig:mod-wizards-newcontentelement-wizarditems-group-elements-name-tt-content-defvalues>`.

0 comments on commit 5c82faf

Please sign in to comment.