Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-field-value-copier-bundle
A backend dca input type for giving the user the opportunity to copy a certain dca's field value from one record to another.
https://github.com/heimrichhannot/contao-field-value-copier-bundle
Last synced: about 1 month ago
JSON representation
A backend dca input type for giving the user the opportunity to copy a certain dca's field value from one record to another.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-field-value-copier-bundle
- Owner: heimrichhannot
- Created: 2019-01-21T11:52:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T16:28:45.000Z (10 months ago)
- Last Synced: 2024-08-10T10:56:20.709Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Contao Field Value Copier Bundle
This simple module offers a backend dca input type for showing a giving the user the opportunity to copy a certain dca's field value from one record to another in Contao CMS. This is useful for fields that are very complex to configure.
![alt text](./docs/backend.png "Demo in the backend")
## Features
### Technical instructions
Add the following to the relevant 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' => [
// ...
]
```