PHP code example of metamodels / attribute_translatedtablemulti

1. Go to this page and download the library: Download metamodels/attribute_translatedtablemulti library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

metamodels / attribute_translatedtablemulti example snippets


$GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = [
    'minCount'     => 1,
    'maxCount'     => 5,
    'columnFields' => [
        'col_title'     => [
            'label'     => 'Title',
            'exclude'   => true,
            'inputType' => 'text',
            'eval'      => [
                'style' => 'width:130px'
            ]
        ],
        'col_highlight' => [
            'label'     => 'Hervorheben',
            'exclude'   => true,
            'inputType' => 'checkbox',
            'eval'      => [
                'style' => 'width:40px'
            ]
        ],
        'col_url'       => [
            'label'     => 'URL',
            'exclude'   => true,
            'inputType' => 'text',
            'eval'      => [
                'style'     => 'width:130px',
                'mandatory' => false,
                'rgxp'      => 'url'
            ]
        ],
    ],
];