https://github.com/metamodels/attribute_tablemulti
The table multi attribute.
https://github.com/metamodels/attribute_tablemulti
attribute contao metamodel metamodels php
Last synced: 6 months ago
JSON representation
The table multi attribute.
- Host: GitHub
- URL: https://github.com/metamodels/attribute_tablemulti
- Owner: MetaModels
- License: lgpl-3.0
- Created: 2019-05-04T10:33:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-22T20:01:24.000Z (11 months ago)
- Last Synced: 2025-07-29T22:09:27.114Z (7 months ago)
- Topics: attribute, contao, metamodel, metamodels, php
- Language: PHP
- Homepage:
- Size: 4.96 MB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/MetaModels/attribute_tablemulti/actions)
[](https://github.com/MetaModels/attribute_tablemulti/tags)
[](https://packagist.org/packages/MetaModels/attribute_tablemulti)
[](https://packagist.org/packages/MetaModels/attribute_tablemulti)
# The table multi attribute
The table multi attribute for MetaModels.
With this attribute you are able to create complex table structures with the
[MultiColumnWizard]( https://github.com/menatwork/contao-multicolumnwizard-bundle).
## Original idea by Byteworks:
- [Ronny Binder](mailto:rb@bytworks.ch)
- [Michael Bischof](mailto:mb@byteworks.ch)
## 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.
```php
$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'
]
],
],
];
```