Project

General

Profile

Actions

Bug #88253

closed

TSconfig: Adding a new content element item group does not work

Added by Gone With the Wind over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2019-05-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
tsconfig, custom content element
Complexity:
Is Regression:
Sprint Focus:

Description

When defining custom content elements, up to the latest version of TYPO3 8 this used to work:

mod.wizards.newContentElement.wizardItems {
    theme.header = Theme
    // or:
    // theme.header = LLL:EXT:theme/Resources/Private...
    theme.elements {
        theme_intro: {...}
    }
}

In TYPO3 9.5.5 the "header" is not recognized anymore. The error is thrown at line 399 in

/typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

where JavaScript complains with

rawurlencode() expects parameter 1 to be string, null given

This leads to the problem that the modal for inserting content elements does not show any content elements, but keeps showing the loading spinner.

The included screenshot (xdebug) shows clearly that each item group has its "root" term, defined by the "header" attribute. "elements" are the result of concatenation, as it seems. In any case, "theme" is not recognized, because "header" gets lost somewhere on the way...

Given the fact that this happens in the context of an update from TYPO3 8 to 9, none of the original scripts that worked in v8, changed. However, it would be great, if there is anybody out there, who could (dis)confirm this problem. My own setups (also on new TYPO3 9 installations) all fail.

For reference: The shipped "dummy placeholders for item groups" are defined in:
/typo3/sysext/backend/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig

PS: I assigned "TypoScript" as category, since the failing starts there. But maybe another category wold be more appropriate?


Files

Actions

Also available in: Atom PDF