Skip to content

setRegisterInNewContentElementWizard(false) not working #628

@ProKella

Description

@ProKella

Hello!

I would like to hide a container (CType=panels) from the newContentElementWizard. However, using the method ->setRegisterInNewContentElementWizard(false) is not working.

Here is my configuration in packages/theme/Configuration/TCA/Overrides/container_definitions.php

// Panel-Container
$panelConfig = (new ContainerConfiguration(
    'panels',
    'Panel',
    'Ein einzelnes Panel innerhalb des Akkordeons',
    [
        [
            ['name' => 'Panel-Inhalt', 'colPos' => 201, 'allowed' => ['CType' => 'Text,Linkliste,Buttonlinkliste']],
        ],
    ]
))
    ->setBackendTemplate('EXT:theme/Resources/Private/Container/BackendPreviews/PanelPreview.html')
    ->addGridPartialPath('EXT:theme/Resources/Private/Container/Partials/')
    ->setRegisterInNewContentElementWizard(false);

GeneralUtility::makeInstance(Registry::class)->configureContainer($panelConfig);

I would expect the panel to disappear, but it is still there. I flushed the php-cache.

b13/container version: 3.1.10
Typo3 version: 13.4.15

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions