Skip to content

A backend dca input type for giving the user the opportunity to copy a certain dca's field value from one record to another.

Notifications You must be signed in to change notification settings

heimrichhannot/contao-field-value-copier-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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' => [
    // ...
]

About

A backend dca input type for giving the user the opportunity to copy a certain dca's field value from one record to another.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •