Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • claudio morandi 24 posts 92 karma points
    Aug 24, 2017 @ 16:06
    claudio morandi
    0

    Extending users

    Is there a way to add a new property for users (not members) in Umbraco? I modified the core of Umbraco but I'm blocked on saving profile, when I receive the error Method not found: 'Void umbraco.BusinessLogic.User.set_CustomerID(Int32)'. CustomerID is obviously the new property I'm trying to add.

  • Marcio Goularte 389 posts 1362 karma points
    Aug 25, 2017 @ 13:12
    Marcio Goularte
    0

    Unfortunately only with custom database table. I even thought it would be a feature in the new version 7.7.0, but it will not be contemplated.

    I have done this by reimplementing EditUser.aspx.cs by modifying the Umbraco source code by adding the properties and loading of the table I created. However it is only valid if the version of umbraco will not be updated, which was the case of my client.

    https://github.com/umbraco/Umbraco-CMS/blob/90f2fc4cd9156e4eaa03b17fa68e7980ea225580/src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs

    Another way is to create a dashboard with a custom implementation where you can add the properties you want by using the custom database table. One starting point is this package:

    https://github.com/leekelleher/umbraco-bulk-user-admin

    https://our.umbraco.org/projects/backoffice-extensions/bulk-user-admin/

    But remembering that soon the new version of Umbraco 7.7.0 will change the way users edit. Some things may change.

    https://umbraco.com/blog/umbraco-77-beta-beautiful-user-management-is-now-a-thing/

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies