https://github.com/jackd248/typo3-eval-additions
https://github.com/jackd248/typo3-eval-additions
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackd248/typo3-eval-additions
- Owner: jackd248
- License: gpl-2.0
- Created: 2025-01-27T09:49:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T09:51:01.000Z (over 1 year ago)
- Last Synced: 2025-07-11T09:50:22.740Z (about 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# TYPO3 extension `typo3_eval_additions`
[]()
This extension provides additions for [TYPO3 TCA eval](https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Input/#confval-input-eval) function.
## Installation
``` bash
composer require kmi/typo3-eval-additions
```
## Additions
### Combined Unique
The combined unique eval function allows you to define a unique constraint for multiple fields of a record.
```php
'first_field' => [
'config' => [
'eval' => \Kmi\Typo3EvalAdditions\Evaluation\CombinedUnique::class
]
],
'second_field' => [
'config' => [
'eval' => \Kmi\Typo3EvalAdditions\Evaluation\CombinedUnique::class
]
],
```
> **Note**: The unique constraint is only working for __input__ fields. You can add them to other field types and these fields will also be checked for uniqueness, but the save process for these fields will not be interrupted if the constraint is violated.