menatwork / MultiColumnWizard

Contao Extension :: Define unlimited dca fields dynamically
http://contao.org/en/extension-list/view/MultiColumnWizard.html
28 stars 30 forks source link

dcaPicker not working #244

Closed mpitz closed 5 years ago

mpitz commented 6 years ago

The icon of the dcaPicker seems not to work:

image

Here is the code of the dca file:

$GLOBALS['TL_DCA']['tl_content']['fields']['footer_metalinks'] = array
(
    'label'                   => &$GLOBALS['TL_LANG']['tl_content']['footer_metalinks'],
    'explanation'             => &$GLOBALS['TL_LANG']['tl_content']['footer_metalinks'],
    'exclude'                 => true,
    'inputType'               => 'multiColumnWizard',
    'eval'                    => array
    (
        'dragAndDrop' => true,
        'columnFields' => array
        (
            'link_description' => array
            (
                'label'                   => &$GLOBALS['TL_LANG']['tl_content']['link_description'],
                'explanation'             => &$GLOBALS['TL_LANG']['tl_content']['link_description'],
                'exclude'                 => true,
                'search'                  => true,
                'inputType'               => 'text',
                'eval'                    => array('maxlength'=>255, 'tl_class'=>'w50'),
                'sql'                     => "varchar(255) NOT NULL default ''"
            ),
            'link_title' => array
            (
                'label'                   => &$GLOBALS['TL_LANG']['tl_content']['link_title'],
                'explanation'             => &$GLOBALS['TL_LANG']['tl_content']['link_title'],
                'exclude'                 => true,
                'search'                  => true,
                'inputType'               => 'text',
                'eval'                    => array('maxlength'=>255, 'tl_class'=>'w50'),
                'sql'                     => "varchar(255) NOT NULL default ''"
            ),
            'link_url' => array
            (
                'label'                   => &$GLOBALS['TL_LANG']['tl_content']['link_url'],
                'explanation'             => &$GLOBALS['TL_LANG']['tl_content']['link_url'],
                'exclude'                 => true,
                'search'                  => true,
                'inputType'               => 'text',
                'eval'                    => array('mandatory'=>true, 'rgxp'=>'url', 'decodeEntities'=>true, 'maxlength'=>255, 'dcaPicker'=>true, 'tl_class'=>'w50 wizard'),
                'sql'                     => "varchar(255) NOT NULL default ''"
            )
        )
    )
);

Contao: 4.4.8 MCW: 3.3.15

zonky2 commented 5 years ago

fixed in MCW-bundle https://github.com/menatwork/contao-multicolumnwizard-bundle/issues/25