Skip to content

Commit 4f96973

Browse files
[Backport 14.3] [FEATURE] Implement page creation wizard (#1410)
[FEATURE] Implement page creation wizard (#1395) References: TYPO3-Documentation/Changelog-To-Doc#1653 Releases: main, 14.3 (cherry picked from commit 6d8157d) Co-authored-by: Lina Wolf <48202465+linawolf@users.noreply.github.com>
1 parent a537d4a commit 4f96973

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$GLOBALS['TCA']['pages']['types']['123']['wizardSteps'] = [
4+
'setup' => [
5+
'title' => 'backend.wizards.page:step.setup',
6+
'fields' => ['title', 'slug', 'nav_title', 'hidden', 'nav_hide'],
7+
],
8+
'special' => [
9+
'title' => 'backend.wizards.page:wizard.special_step',
10+
'fields' => ['my_custom_field'],
11+
'after' => ['setup'],
12+
],
13+
];
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. confval:: wizardSteps
2+
:name: types-wizardSteps
3+
:Path: $GLOBALS['TCA'][$table]['types'][$recordType]['wizardSteps']
4+
:type: array
5+
:Scope: Table :sql:`tables` only
6+
7+
.. versionadded:: 14.2
8+
It is possible to configure fields, steps (and their order)
9+
in the page creation wizard using TCA. See
10+
`Feature: #109271 - Add TCA configuration for page creation wizard steps <https://docs.typo3.org/permalink/changelog:feature-109271-1742217000>`_.
11+
12+
Defines the steps shown in the page creation wizard for the `pages` table.
13+
14+
Each step is identified by a unique key and contains a localized title and a
15+
list of fields to display in that step. The configured steps are sorted and
16+
may be positioned relative to other steps by using the `before` or `after`
17+
options.
18+
19+
The configuration can be defined per page type, allowing different wizard
20+
steps and field assignments depending on the selected page type.
21+
22+
Required fields that are not assigned to any configured wizard step are added
23+
automatically to a fallback step, which is appended at the end of the wizard.
24+
25+
.. literalinclude:: /Types/_CodeSnippets/_page_wizardSteps.php
26+
:caption: EXT:my_extension/Configuration/TCA/Overrides/pages.php
27+
28+
For a complete example see `TYPO3 Explained, Create new page type <https://docs.typo3.org/permalink/t3coreapi:page-types-example>`_.

0 commit comments

Comments
 (0)