b13/otf
Composer 安装命令:
composer require b13/otf
包简介
Provides on-the-fly evaluation hints for FormEngine
关键字:
README 文档
README
This TYPO3 extension allows to add a FormEngine FieldWizard to specific
TCA fields. The FieldWizard checks the corresponding fields for their
eval configuration. If one or multiple supported evaluations are found,
the FieldWizard displays on-the-fly evaluation hints in the backend form.
An example use case is the username field of fe_users, which is
configured as unqiueInPid and would therefore add a hint, as soon
as an already existing username is entered.
Installation
Install this extension via composer req b13/otf.
You can also download the extension from the TYPO3 Extension Repository and activate it in the Extension Manager of your TYPO3 installation.
Note: This extension is compatible with TYPO3 v10 and v11.
Configuration
The FieldWizard can be added to any TCA field of type input.
The following example adds the FieldWizard to the username and email
fields of the TYPO3 fe_users table.
<?php defined('TYPO3') or die(); \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Otf\Tca\Registry::class) ->registerFields( new \B13\Otf\Tca\Configuration('fe_users', new \B13\Otf\Tca\Field('username'), new \B13\Otf\Tca\Field('email') ) );
In case you want to add the FieldWizard to a field, which does not yet
define any supported evaluation, you can simply add new evaluations to
the Field.
<?php defined('TYPO3') or die(); \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Otf\Tca\Registry::class) ->registerFields( new \B13\Otf\Tca\Configuration('fe_users', (new \B13\Otf\Tca\Field('email'))->addEvaluations('uniqueInPid', 'email') ) );
It's also possible to remove existing evaluations with the
->removeEvaluations() method.
The above examples are for the use in TCA/Overrides files. In your own
TCA, simply add the FieldWizard to your field's configuration directly:
'aField' => [ 'label' => 'aField', 'config' => [ 'type' => 'input', 'eval' => 'trim,required,unique', 'fieldWizard' => [ 'otfWizard' => [ 'renderType' => 'otfWizard' ] ] ] ]
Supported evaluations
Currently, following evaluations are supported:
uniqueuniqueInPidemail
Administration
The behaviour of the on-the-fly evaluation hints can be configured with User TSconfig. Following options are available:
tx_otf.conflictingRecordLink- Whether a link to the confliciting record should be displayed (Default:1)
Registration API
You can register your own evaluation services to handle additional evals.
Therefore, create a new evaluation service class which implements the
EvaluationInterface. The class will then automatically be tagged and
registered. Additionally, you can extend AbstractEvaluation, which
already implements some required methods.
Credits
This extension was created by Oliver Bartsch in 2021 for b13 GmbH, Stuttgart.
Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.
b13/otf 适用场景与选型建议
b13/otf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 393 次下载、GitHub Stars 达 3, 最近一次更新时间为 2021 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「validation」 「typo3」 「formengine」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 b13/otf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 b13/otf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 b13/otf 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Set Links with a specific language parameter
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
Provides an online media provider for the TwentyThree Video Marketing Platform
An interactive tour through the TYPO3 backend.
Embed a map search into your TCA forms
Adds request-parameter validation to the SLIM 3.x PHP framework
统计信息
- 总下载量: 393
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-11-12