metamodels / attribute_tablemulti
MetaModels attribute for dynamic table multi
Installs: 1 922
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 0
Open Issues: 2
Type:contao-bundle
Requires
- php: ^8.1
- ext-pdo: *
- contao-community-alliance/dc-general: ^2.3
- contao/core-bundle: ^4.13.0 <5.0
- doctrine/dbal: ^3.3.2
- metamodels/core: ^2.3
- symfony/dependency-injection: ^5.4
- symfony/http-kernel: ^5.4
Requires (Dev)
- contao/manager-plugin: ^2.1
- menatwork/contao-multicolumnwizard-bundle: ^3.6
- phpcq/runner-bootstrap: ^1.0@dev
- dev-master
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- dev-hotfix/2.2.4-translation
- dev-hotfix/2.2.4
- dev-hotfix/fix_composer_transifex
- dev-hotfix/binary-files
- dev-hotfix_2.1/switch_to_github-actions
- dev-dependabot/add-v2-config-file
- dev-hotfix/2.1.3-translation
- dev-hotfix/warnings
- dev-hotfix/2.1.3
- dev-develop
This package is auto-updated.
Last update: 2025-03-22 20:01:28 UTC
README
The table multi attribute
The table multi attribute for MetaModels.
With this attribute you are able to create complex table structures with the MultiColumnWizard.
Original idea by Byteworks:
Configure the table multi attribute
Create the configuration in e.g. the contao/config/config.php or src/Resources/contao/config/config.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'] = [ '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' ] ], ], ];