Review main Merged

18815[FEATURE] IRRE: Provide default values for created records

Sebastian Michaelsen CR +2 V +2 Easy +25 −2 updated 07/05/13, 15:14

Commit message

This change introduces a new TCA option to configure 'inline' fields:
'foreign_record_defaults' gives you the possibility to set values
in new created records.

Usage example:
config => array(
  'type' => 'inline',
  'foreign_table' => 'tt_content',
  'foreign_record_defaults' => array(
    'CType' => 'image'
  ),
)

That means tt_content elements that are created for this IRRE field
will be image content elements by default (and can be set to another
type by the editor before saving).

The following fields can't be set by this feature because they must
stay under system control:
uid, pid and t3ver_*
and the fields that are configured with the following TCA-ctrl options:
crdate, cruser_id, delete, origUid, transOrigDiffSourceField,
transOrigPointerField and tstamp

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1