CCK字段中的输入过滤,怎么可能?

发布于 2024-10-06 07:32:37 字数 110 浏览 0 评论 0原文

我已使用 CCK 将新字段添加到我的自定义内容类型。有电子邮件和电话号码,我想将其输入限制为电话号码字段的数字和电子邮件字段的特殊模式。

我怎样才能做到这一点?

提前谢谢您。

i have added to new fields using CCK to my custom content type. there are email and phone number and i want to restrict their input to just numbers for phone number field and special pattern to email field.

how can i do that?

thank you in advanced.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的温暖 2024-10-13 07:32:37

电话号码有特定的 CCK 字段类型,电子邮件有特定的 CCK 字段类型。您应该使用这些文本字段而不是 CCK 文本字段,因为它们会自动验证/限制输入。

There are specific CCK field types for phone number and specific CCK field types for email. You should use these instead of CCK text fields as they automatically validate/restrict the input.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文