Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when duplicating nested multicolumnwizard #23

Open
theDyingMountain opened this issue Aug 25, 2023 · 1 comment
Open

Error when duplicating nested multicolumnwizard #23

theDyingMountain opened this issue Aug 25, 2023 · 1 comment
Assignees

Comments

@theDyingMountain
Copy link

If I want to duplicate an nested multicolumnwizard, the field does not exists in the global DCA array. So I got the exception in https://github.com/menatwork/contao-multicolumnwizard-bundle/blob/master/src/EventListener/Mcw/CreateWidget.php#L93

My dca code:

'inputType' => 'multiColumnWizard',
    'save_callback' => array(array('Zmyslny\WrapperTags\EventListener\ContentListener', 'onSaveCallback')),
    'eval' => array
    (
        'mandatory' => true,
        'dragAndDrop' => true,
        'columnFields' => array
        (
            'tag' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_content']['wt_tag'],
                'inputType' => 'select',
                'options_callback' => array('Zmyslny\WrapperTags\EventListener\ContentListener', 'getTags'),
            ),
            'attributes' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_content']['wt_attribute'],
                'exclude' => true,
                'inputType' => 'multiColumnWizard',
                'eval' => array
                (
                    'tl_class' => 'attributes',
                    'dragAndDrop' => true,
                    'allowHtml' => false,
                    'columnFields' => array
                    (
                        'name' => array
                        (
                            'label' => &$GLOBALS['TL_LANG']['tl_content']['wt_attribute_name'],
                            'inputType' => 'text',
                            'exclude' => true,
                            'eval' => array('allowHtml' => false)
                        ),
                        'value' => array
                        (
                            'label' => &$GLOBALS['TL_LANG']['tl_content']['wt_attribute_value'],
                            'inputType' => 'text',
                            'exclude' => true,
                            'eval' => array('allowHtml' => false)
                        ),
                    ),
                ),
            ),
            'class' => array
            (
                'label' => &$GLOBALS['TL_LANG']['tl_content']['wt_class'],
                'exclude' => true,
                'inputType' => 'text',
                'eval' => array('allowHtml' => false)
            )
        )
@zonky2
Copy link
Collaborator

zonky2 commented Apr 9, 2024

same at current MCW? which Version of Contao and PHP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants