metamodels / attribute_tablemulti
MetaModels 动态表格多属性
2.2.3
2023-05-01 15:50 UTC
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.6
- symfony/http-kernel: ~4.4.13
Requires (Dev)
- dev-master
- 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: 2024-09-16 21:05:52 UTC
README
表格多属性
MetaModels 的表格多属性。
原始想法来自 Byteworks
配置表格多属性
使用此属性,您可以使用 MultiColumnWizard 创建复杂表格结构。在例如 app/Resources/contao/config/dcaconfig.php 或其他配置加载的地方创建配置,并写入如下内容
mm_test
是表名,而 multi_test
是字段名。
$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' ) ), ), );