定制 metamodels/attribute_tablemulti 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

metamodels/attribute_tablemulti

最新稳定版本:2.3.0

Composer 安装命令:

composer require metamodels/attribute_tablemulti

包简介

MetaModels attribute for dynamic table multi

README 文档

README

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month

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'
            ]
        ],
    ],
];

统计信息

  • 总下载量: 2.69k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 8
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2019-05-05