Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Contao Extension :: Define unlimited dca fields dynamically
PHP JavaScript CSS

This branch is 46 commits behind menatwork:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
system/modules/multicolumnwizard
.gitignore
README.md
composer.json
move.psd

README.md

Usage with columnFields

<?php

$GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = array
(
    'label'         => &$GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
    'exclude'       => true,
    'inputType'     => 'multiColumnWizard',
    'eval'          => array
        (
        'columnFields' => array
            (
            'ts_client_os' => array
                (
                'label'         => &$GLOBALS['TL_LANG']['tl_theme']['ts_client_os'],
                'exclude'       => true,
                'inputType'     => 'select',
                'eval'          => array
                    (
                        'style'                     => 'width:250px',
                        'includeBlankOption'        => true
                    ),
                'options'       => array
                    (
                        'option1'       => 'Option 1',
                        'option2'       => 'Option 2',
                    )                
                ),
            'ts_client_browser' => array
                (
                'label'         => &$GLOBALS['TL_LANG']['tl_theme']['ts_client_browser'],
                'exclude'       => true,
                'inputType'     => 'text',
                'eval'          => array('style'=>'width:180px')
                ),
            )
        )
);

?>

Usage with callback

<?php

$GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = array
(
    'label'         => &$GLOBALS['TL_LANG']['tl_table']['anything'],
    'exclude'       => true,
    'inputType'     => 'multiColumnWizard',
    'eval'          => array
        (
        'mandatory'             => true,
        'columnsCallback'       => array('Class', 'Method')
        )
);

?>

More information

More information can be found in the contao wiki http://de.contaowiki.org/MultiColumnWizard

Something went wrong with that request. Please try again.