heimrichhannot / contao-field-value-copier-bundle
这个简单的模块提供了一个Contao CMS的后端dca输入类型,使用户有机会将某个dca的字段值从一个记录复制到另一个记录。这对于配置复杂的字段非常有用。
1.4.0-beta1
2024-03-05 08:23 UTC
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.13 || ^5.0
- heimrichhannot/contao-utils-bundle: ^2.95 || ^3.0
Replaces
This package is auto-updated.
Last update: 2024-09-12 17:40:55 UTC
README
这个简单的模块提供了一个Contao CMS的后端dca输入类型,使用户有机会将某个dca的字段值从一个记录复制到另一个记录。这对于配置复杂的字段非常有用。
特性
技术说明
将以下内容添加到相关的DCA中
'complexFieldCopier' => [
// no label necessary
'inputType' => 'fieldValueCopier',
'eval' => [
'fieldValueCopier' => [
'table' => 'tl_my_dca',
'field' => 'complexField',
'config' => [
// here all available config parameters found in \HeimrichHannot\UtilsBundle\Choice\ModelInstanceChoice::collect() are possible
'labelPattern' => '%title% (ID %id%)' // all of the dca's fields can be used here
],
'options_callback' => ['huh.field_value_copier.util.field_value_copier_util', 'getOptions']
]
]
],
'complexField' => [
// ...
]