fruitstudios/validateit
Composer 安装命令:
composer require fruitstudios/validateit
包简介
Supercharged text field validation.
README 文档
README
Validateit plugin for Craft 3
Supercharged text field validation...
Requirements
This plugin requires Craft CMS 3.0.0 or later.
Installation
To install the plugin, follow these steps:
-
Install with Composer via:
composer require fruitstudios/validateit
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Validateit.
Validateit Overview
This plugin adds a custom fieldtype which allows you to take control of validation on plain text fields. Validate using the following predefined strings or setup your own custom regex rules. Add custom placeholders and error messages.
- Email Address
- URL
- Phone Number
- IP Address
- IPv4 Address
- IPv6 Address
- Facebook Link
- Twitter Link
- LinkedIn Link
- Instagram Link
- Custom Regex Rule
Configuring Validateit
Once installed, create a new field and choose the Validateit fieldtype. You'll then have the option of configuring how you want to validate the text.
Each field has the option to set a custom placeholder and error message
Custom regex rules allow you to validate any string
Using Validateit
Use just as you would any native Plain Text field:
{{ entry.validateitFieldHandle }}
Roadmap
If you have any super useful validation rules shout and we can look to add them to the core plugin for everyone to use.
- Show default error message and placeholder text in field settings.
Brought to you by Pressed Digital
统计信息
- 总下载量: 9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2018-04-30


