![](/img/trans.png)
[英]Joomla PHP plugin how to check the current component is not 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.