目前我的第一页注册显示以下字段:
First Name
Last Name
Username
Email
Password
Verify Password
点击“下一步”后,“姓名”和“姓氏”字段将自动填入上一页填写的内容。我想显示上一页的电子邮件,但我不确定要使用什么“字段代码”。我也在使用JoomlaXi的JomSocial Profile Types(JSPT),但我不太确定在这种情况下是否也很重要。
在后端我会去组件> JomSocial>自定义配置文件> “新领域”
Name: Email
Type: Email
Groups: User Contact Info
Field Code: (no idea what to put here to display the email already provided)
Registration: Yes
Visible: Personal
Tooltip: N/A
Read Only: Yes
Published: Yes
Required: Yes
非常感谢,我确实尽力搜索并寻找答案,所以如果已经在其他地方已经覆盖了我就道歉,但是看了45分钟后我决定试试我的运气。再次感谢,非常感谢任何帮助
答案 0 :(得分:2)
我不确定您是否可以实现它,您可以尝试在以下位置创建自定义字段:
components/com_community/libraries/fields/
在那里你将创建“yourfield.php”并在
中getFieldData()
您可以提取实际电子邮件值的方法;
否则你可以编辑
components/com_community/templates/your_template/register.profile.php
并在那里硬编码。