Skip to content

Commit a87349d

Browse files
simonschaufilinawolffroemken
authored
[BUGFIX] Fix plugin list type to CType migration (#5521)
* [BUGFIX] Fix plugin list type to CType migration See Forge issue: https://forge.typo3.org/issues/105135 Releases: main, 13.4, 12.4 * Update Documentation/ApiOverview/ContentElements/_Migration/_typoscript.diff Co-authored-by: Stefan Frömken <froemken@gmail.com> * Update _typoscript.diff --------- Co-authored-by: Lina Wolf <48202465+linawolf@users.noreply.github.com> Co-authored-by: Stefan Frömken <froemken@gmail.com>
1 parent ee63eee commit a87349d

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

Documentation/ApiOverview/ContentElements/_Migration/PluginListTypeToCTypeUpdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public function getTitle(): string
2626

2727
public function getDescription(): string
2828
{
29-
return 'Migrates my_extension_pi1, my_extension_pi2 from list_type to CType. ';
29+
return 'Migrates my_extension_pi1, my_extension_pi2 from list_type to CType.';
3030
}
3131
}
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
-tt_content.list.20.examples_pi1 = USER
22
-tt_content.list.20.examples_pi1 {
3-
+tt_content.examples_pi1 = USER
3+
+tt_content.examples_pi1 =< lib.contentElement
44
+tt_content.examples_pi1 {
5-
userFunc = MyVendor\Examples\Controller\ExampleController->example
6-
settings {
7-
singlePid = 42
8-
listPid = 55
9-
}
10-
view {
11-
templateRootPath = {$templateRootPath}
12-
partialRootPath = {$partialRootPath}
13-
layoutRootPath = {$layoutRootPath}
5+
20 = USER
6+
20 {
7+
userFunc = MyVendor\Examples\Controller\ExampleController->example
8+
settings {
9+
singlePid = 42
10+
listPid = 55
11+
}
12+
view {
13+
templateRootPaths.10 = {$templateRootPath}
14+
partialRootPaths.10 = {$partialRootPath}
15+
layoutRootPaths.10 = {$layoutRootPath}
16+
}
1417
}
18+
templateName = Generic
1519
}
1620

1721
# Or if you used the plugin top level object:
1822

1923
-tt_content.list.20.examples_pi1 < plugin.tx_examples_pi1
20-
+tt_content.examples_pi1 < plugin.tx_examples_pi1
24+
+tt_content.examples_pi1.20 < plugin.tx_examples_pi1

0 commit comments

Comments
 (0)