1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Override User Administration Page

Override User Administration Page

4 posts, 0 answered
  1. John
    John avatar
    61 posts
    Registered:
    08 Jun 2012
    31 Aug 2009
    Link to this post
    Hello,

    Is it possible to "override" in web.config the page that is used for user administration in Sitefinity? We would like to add some custom profile fields to the page without modifying the default page in \Sitefinity\Admin\CmsAdmin\Users.aspx. We are trying to keep the number of "core" Sitefinity code modifications to a minimum to provide a cleaner upgrade path for our client.

    Thank you in advance for your (always great) help!

    Regards,
    John Gassman
    Workstate
  2. Adam @Habanero
    Adam @Habanero avatar
    45 posts
    Registered:
    22 Jun 2012
    31 Aug 2009
    Link to this post
    I don't think there is a web.config setting for this, but we have dealt with this in a couple of different ways:

    1.  Capture the request in global.asax for that page and redirect to your page
    2.  Edit the out of the box page
    3.  copy the out of the box page to a seperate project, make your changes and place an post build event that does an xcopy and copies your page to the website project.
      - this works well if your client will be doing a rebuild of the solution prior to deploying the sitefinity upgrade, this is alswasy a good idea as API calls can changes sometimes...
  3. John
    John avatar
    61 posts
    Registered:
    08 Jun 2012
    31 Aug 2009
    Link to this post
    Adam,

    Thank you for the verification - it's kind of what I was afraid of. Not that big of a deal, though I am curious as to why the User Admin screens were implemented so differently from the modules. I may go with the global.asax option, but I am also considering directly modifying Users.aspx as well.

    Regards,
    John
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    31 Aug 2009
    Link to this post
    Hello John,

    Changing the profile properties can be done through your web.config <profile><properties> section. This properties can be managed using ProfileBase class. Generally you could inherit from AdminPage and implement your custom logic but I think that this will be more difficult than writing some logic under Users.aspx.cs.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered