繁体   English   中英

如何在joomla 2.5默认值中以注册表单添加新字段(com_users)

[英]How to add new fields in registration form in joomla 2.5 default (com_users)

我正在该站点上的一个站点上工作,我需要自定义注册字段并在其中添加新字段。 我怎样才能做到这一点? 我已经看到了所有可能的文件,但没有找到解决方案。

Step1 : component/com_users/models/forms/registration.xml ---- open this file and new field what ever you want.
For Example : <field name="newfield" type="text" 
description="COM_USERS_REGISTER_NEWFIELD_DESC" 
filter="string" 
label="COM_USERS_REGISTER_NEWFIELD_LABEL" 
message="COM_USERS_REGISTER_FIELD_MESSAGE" 
required="true" 
size="30" 
/>
Step 2: Open your database and add new field manually. You are done now. Test your site and enjoy :-) 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM