Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Adding custom fields to standard Community modules


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?

Aug 13, 2009 10:46


 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);
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!


Edited, Aug 14, 2009 10:31
Thanks, I'll try it out! :)
Aug 14, 2009 12:45
Works perfectly! Thanks again!
Aug 14, 2009 14:17
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.