Copied to clipboard

Flag this post as spam?

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


  • curlybub 133 posts 107 karma points
    Jul 07, 2009 @ 08:53
    curlybub
    0

    Add fields on the Umbraco Membership Package

    Hi again,

    Is it possible to add fields to the umbraco membership package? If so, how do I do that? I've been looking into the forums and seems like everybody is creating their own membership control. I just want to use the membership package if that is possible. Sorry but I do not have an ASP.NET background.

    Thank you.

     

    Regards,

    Harry

  • Jan Skovgaard 11280 posts 23678 karma points MVP 12x admin c-trib
    Jul 07, 2009 @ 10:15
    Jan Skovgaard
    1

    Yes that should be possible.

    In your member type there is a tab called "generic properties" where you can add all the extra fields that you want to. Just like when you are creating a document type.

    But I think you should consider using the asp.net membership controls - I myself do not have the greatest .net skills but with this guide http://www.mortenbock.dk/setting-up-membership-in-umbraco-116.htm by Morten and some comon sense I think you can handle it :)

    Hope some of this helps you.

    /Jan

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 08, 2009 @ 05:23
    Aaron Powell
    0

    Umbraco membership uses the standard ASP.NET MembershipProvider model, which has implementations to route through the Umbraco member store.

    For the properties of a member (ie - things like First Name, Last Name) you add those to the MemberType which your Members will be using.

    You can then configure this with a ProfileProvider in the web.config (the class is umbraco.providers.members.UmbracoProfileProvider), and specifying the Name as the Alias of the property on the MemberType

  • curlybub 133 posts 107 karma points
    Jul 08, 2009 @ 09:05
    curlybub
    0

    Hi,

    So I added a field on the generic property of the Member Type. It's name is address. I dont know where to insert this line on the web.config file <add name="address" type="umbraco.providers.members.UmbracoProfileProvider" /> 

    When I try to insert that line inside

    <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
          <providers>
            <clear />
            <add name="UmbracoRoleProvider" type="umbraco.providers.members.UmbracoRoleProvider" />
          </providers>
        </roleManager>

    and

    <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="UmbracoMembershipProvider" type="umbraco.providers.members.UmbracoMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Website-User" passwordFormat="Hashed" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>

    umbraco crashes. Please help.

    Thank you.

    Regards,

    Harry

  • curlybub 133 posts 107 karma points
    Jul 08, 2009 @ 09:25
    curlybub
    0

    Oh! I mean I want to add extra fields on the registration page. like address, phone numbers, etc. Sorry.

    Regards,

    Harry

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 08, 2009 @ 12:09
    Aaron Powell
    0

    You want to look into the ProfileProvider as I mentioned. There's plenty of stuff on this on MSDN, here's a good starting point: http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx

    Then when you use the CreateUserWizard control it will detect the stuff from the profile provider defined and put all the fields there.

  • 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