Task #55187
Epic #55070: Workpackages
Epic #54260: WP: FAL Missing Issues / Features / API
Story #54261: As an Extension-Developer I want to use FAL assets in my custom development
Task #55177: Add concept of a default storage
Allow unique evaulation for TCA type 'check'
Status: | Resolved | Start date: | 2014-01-20 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Oliver Hader | % Done: | 100% |
|
Category: | Backend User Interface | Spent time: | 0.70 hour | |
Target version: | - | |||
TYPO3 Version: | 6.2 | Complexity: | ||
PHP Version: | 5.3 | Sprint Focus: |
Description
Allow the unique evaluation for checkboxes by setting the accordant 'eval' property in the field configuration in TCA.
Example:
'is_default' => array(
'exclude' => 0,
'label' => 'LLL:EXT:lang/locallang_tca.xlf:sys_file_storage.is_default',
'config' => array(
'type' => 'check',
'default' => 1,
'eval' => 'unique',
)
),
Related issues
Associated revisions
[FEATURE] Add maximumRecords evaluation for TCA type 'check'
Allow the max items evaluation for checkboxes by setting the
accordant 'eval' property in the field configuration in TCA.
This makes it possible to have only e.g. 5 records that have a
checkbox set system-wide or PID-wide. If an editor
sets a another checkbox in record #6, it gets reverted
until another record was unchecked.
Parameters are "maximumRecordsChecked" and
"maximumRecordsCheckedInPid".
$tcaFieldConf = array(
'type' => 'check',
'eval' => 'maximumRecordsChecked',
'validation' => array(
'maximumRecordsChecked' => 5
)
);
Change-Id: Ic33571fec15dcc9f83a61e2409256cce7dae8b12
Documentation: #55188
Resolves: #55187
Releases: 6.2
Reviewed-on: https://review.typo3.org/26946
Reviewed-by: Ingo Schmitt
Tested-by: Ingo Schmitt
Reviewed-by: Frans Saris
Tested-by: Frans Saris
History
#1 Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#2 Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#3 Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#4 Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#5 Updated by Gerrit Code Review over 1 year ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#6 Updated by Gerrit Code Review over 1 year ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#7 Updated by Gerrit Code Review over 1 year ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26946
#8 Updated by Oliver Hader over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7cfcb65d3e2b25522490658a07ea17ebaa45baad.
#9 Updated by Oliver Hader over 1 year ago
- Parent task set to #55177