ReStructured Text InfrastructureTYPO3 CMS - What's Newwiki.typo3.orgTYPO3 CMS Documentation

Feature #55188

Allow unique evaulation for TCA type 'check'

Added by Oliver Hader over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:2014-01-20
Priority:Should have Due date:
Assigned To:Francois Suter % Done:

100%

Category:-
Target version:6.2.0

Description

The 'eval' property can have 'unique' and 'uniqueInPid' for TCA type 'check' as well


Related issues

blocked by Core - Task #55187: Allow unique evaulation for TCA type 'check' Resolved 2014-01-20

Associated revisions

Revision 6f09ac38
Added by Francois Suter over 1 year ago

[FEATURE] Maximum records checked for checkboxes

Document new eval properties for check-type records
"maximumRecordsChecked" and "maximumRecordsCheckedInPid"
and the related "validation" property.

Resolves: #55188
Releases: 6.2

Change-Id: I2f5d05c44c62d16385869154a04e96d00e59cd2f
Reviewed-on: https://review.typo3.org/27913
Reviewed-by: Francois Suter
Tested-by: Francois Suter

History

#1 Updated by Benjamin Mack over 1 year ago

I changed the namings as it avoids confusion with the existing eval method "unique" and "uniqueInPid".

$tcaFieldConf = array(
'type' => 'check',
'eval' => 'maximumRecordsChecked',
'validation' => array(
'maximumRecordsChecked' => 5
)
);

what you can do is this:

Say you have a checkbox (type=check) in a TCA table. Let's say we call it "Is important news" - the new option like configured above allows to set maximum of 5 records with a checkbox like this. When editing record #6, the checkbox on that record will be set to 0. You need to uncheck the field in another record first in order to set the checkbox on record #6.

I also provided a new array "validation" for the configuration, so "is_in" validation information could be moved there as well.

Note: This only works for checkboxes.

#2 Updated by Benjamin Mack over 1 year ago

We have "maximumRecordsChecked" and "maximumRecordsCheckedInPid" for that option.

#3 Updated by Francois Suter over 1 year ago

  • Status changed from New to Accepted
  • Assigned To set to Francois Suter
  • Target version set to 6.2.0

#4 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Documentation/TYPO3/Reference/Tca has been pushed to the review server.
It is available at https://review.typo3.org/27913

#5 Updated by Francois Suter over 1 year ago

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

#6 Updated by Francois Suter about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF