Feature #46124

IRRE: Provide default values for created records

Added by Sebastian Michaelsen almost 7 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2013-03-08
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Let's say you have an IRRE fields that hold's tt_content records and in this context mostly you want to use the "Image" CE.

AFAIK there is no possibility to provide default values for IRRE fields. So I'd like to introduce 'foreign_table_defaultValues' as new option for 'inline' elements:

config => array(
  'type' => 'inline',
  'foreign_table' => 'tt_content',
  'foreign_table_defaultValues' => array(
    'CType' => 'image'
  ),
)

Associated revisions

Revision 7340fb2b (diff)
Added by Sebastian Michaelsen over 6 years ago

[FEATURE] IRRE: Provide default values for created records

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

Change-Id: I539f9941cc69506590b55a3520f95e38d5e61dd1
Documentation: #46440
Resolves: #46124
Releases: 6.2
Reviewed-on: https://review.typo3.org/18815
Reviewed-by: Oliver Hader
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn

History

#1 Updated by Gerrit Code Review almost 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#2 Updated by Gerrit Code Review almost 7 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#3 Updated by Gerrit Code Review almost 7 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#4 Updated by Gerrit Code Review over 6 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#5 Updated by Gerrit Code Review over 6 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#6 Updated by Gerrit Code Review over 6 years ago

Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#7 Updated by Gerrit Code Review over 6 years ago

Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#8 Updated by Gerrit Code Review over 6 years ago

Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18815

#9 Updated by Sebastian Michaelsen over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Viktor Livakivskyi about 6 years ago

  • Target version changed from 6.1.0 to 6.2.0

This was added to 6.2 (alpha2).

#11 Updated by Riccardo De Contardi about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF