metamodels / attribute_translatedtablemulti
MetaModels attribute for dynamic translated multi attribute table
Installs: 1 147
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 2
Type:contao-bundle
Requires
- php: ^7.4
- ext-pdo: *
- contao-community-alliance/dc-general: ^2.2
- contao/core-bundle: ^4.9.0, <4.13.0
- metamodels/core: ^2.2
- symfony/dependency-injection: ^4.4
- symfony/http-kernel: ^4.4
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-30 01:42:46 UTC
README
The translated multi attribute table
The translated multi attribute table for MetaModels.
Original idea by Byteworks:
The translated table multi attribute.
With this attribute you are able to create complex table structures with the MultiColumnWizard. Create the configuration in e.g. the app/Resources/contao/config/dcaconfig.php or somewhere else where the config is loaded and write something like this:
The mm_test
is the name of the table and the multi_test
is the name of the field.
$GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = array( 'tl_class' => 'clr', 'minCount' => 0, 'columnFields' => array( 'col_title' => array( 'label' => 'Title', 'exclude' => true, 'inputType' => 'text', 'eval' => array ( 'style'=>'width:130px' ) ), 'col_highlight' => array( 'label' => 'Hervorheben', 'exclude' => true, 'inputType' => 'checkbox', 'eval' => array ( 'style' => 'width:40px' ) ), 'col_url' => array( 'label' => 'URL', 'exclude' => true, 'inputType' => 'text', 'eval' => array ( 'style' =>'width:130px', 'mandatory'=>false, 'rgxp' =>'url' ) ), ), );