Issue Bug Closed

#107098Move element from lists to default in mod.wizards.newContentElement.wizardItems not working

Stefan Terborg 07/15/25, 05:40 updated 07/15/25, 06:56

Description

Example: remove element from lists and add to default:

mod.wizards.newContentElement.wizardItems {
    lists.removeItems := addToList(table)
    default.show := addToList(table)

    # also not working
    # default.show = table
    # common.show = table
    # common.show := addToList(table)
}

The table element is removed from the lists tab but not added to the common/default tab.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Stefan Terborg commented <span data-processor="relativetime" data-value="2025-07-15T06:09:11+00:00" > 07/15/25, 06:09 </span>

    Changing TCA works:

    // move table from lists to default in newContentElement wizard
    foreach ($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] as $key => $itemConfig) {
        if ($itemConfig['value'] === 'table') {
            $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][$key]['group'] = 'default';
        }
    }

    If this can only be changed via TCA it should be pointed out in the documentation. The doc seems to say you could change the TCA setting with TSConfig.

  2. Garvin Hicking commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2025-07-15T06:56:31+00:00" > 07/15/25, 06:56 </span>

    > If this can only be changed via TCA it should be pointed out in the documentation.

    Sure! Could you report an issue on the documentation page you found this information to be missing? Then then documentation team can take care! Please also add the link to this issue for context (and/or the changelog links I gave).

    Thanks a lot! I’ll close the issue here :)