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

Duplicate row not working #123

Open
creo-code opened this issue Jun 1, 2022 · 0 comments
Open

Duplicate row not working #123

creo-code opened this issue Jun 1, 2022 · 0 comments

Comments

@creo-code
Copy link

creo-code commented Jun 1, 2022

The documentation mentions a duplicate button:
https://github.com/contao-community-alliance/contao-multicolumnwizard-bundle#hide-buttons

$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
    ....
    'eval'      => [
        'buttons'      =>
        [
            'new'    => false,
            'copy'   => false,
            'delete' => false,
            'up'     => false,
            'down'   => false
        ],
        ...
    ],
    ...
];

When I try to set "copy" to true, the html code will be added but without a icon as image.

<a data-operations="copy" href="contao?act=edit&..." title="" onclick="return false;"></a>

After clicking the copy button nothing happens.
By digging further through the code I found out the script for the event was uncommented:
https://github.com/contao-community-alliance/contao-multicolumnwizard-bundle/blob/master/src/Resources/public/js/multicolumnwizard_be_src.js#L886-L887

If I remove the comment, the copy function works, except for a warning about the missing alt attribute from the missing .

Is there a reason this function was uncommented?

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

1 participant