Copied to clipboard

Flag this post as spam?

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


  • Robert J. Bullock 386 posts 405 karma points
    Jul 23, 2020 @ 15:31
    Robert J. Bullock
    0

    How To Create New Instance of Member Model?

    So I can see that models builder has created a model for my member type "Student" which is great... But how do I create a new instance of this model so I can use it to build my registration form? When I try to create an instance it says it needs an iPublishedContent object passed in.

    Is this even the right approach? Would be great to build my registration and profile forms without having to copy over property names.

  • Robert J. Bullock 386 posts 405 karma points
    Jul 23, 2020 @ 16:13
    Robert J. Bullock
    0

    Or is there simply a way to access custom properties from the built-in RegisterModel using alias instead of index? That seems really odd if there isn't.

  • Robert J. Bullock 386 posts 405 karma points
    Jul 24, 2020 @ 17:05
    Robert J. Bullock
    0

    Does anyone use this forum anymore? I'm finding v8 to be a nightmare. How do I do something as simple as create a new member in a custom controller? Seems like so much has changed.

  • Giant Penguin 22 posts 91 karma points
    Jul 28, 2020 @ 03:35
    Giant Penguin
    0

    Hi Robert,

    I think you should look into the IContentService, the IContentService.Create overloads is one you can use. The mentioned IPublishedContent is just model for viewing.

    Regards,

Please Sign in or register to post replies

Write your reply to:

Draft