Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Hi,
This is possible. It requires that you create a class that inherit that page, and extends it.
namespace EPiServer.Templates.RelatePlus.Templates.RelatePlus.AdminExtension {
public class EditUserPage : EPiServer.Community.Web.Administration.EditUserPage
{
protected System.Web.UI.WebControls.TextBox txtExtraBox;
protected override void OnInit(EventArgs e)
{
buttonSave.Click += new EventHandler(buttonSave_Click);
base.OnInit(e);
}
void buttonSave_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
// Save the text in the added field txtExtraBox
string text = txtExtraBox.Text;
}
}
}
}
Then, you open up EPiServerCommunity\Security\EditUser.aspx, and change the @Page directive so that the page inherits the class above instead of the default implementation:
@Page ... Inherits="EPiServer.Templates.RelatePlus.Templates.RelatePlus.AdminExtension.EditUserPage"
And also in this file, add the user control that is handled by your class:
<asp:TextBox ID="txtExtraBox" runat="server"></asp:TextBox>
This should be it!
/Kristoffer
I know that it's possible to add custom modules to Community, but is there any way of customizing the standard modules?
For example in the Community tab -> System Settings -> Groups/Users -> Add User, I'd like to add a custom field. Is this possible?