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.
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.
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.
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.
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.
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.
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.
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,
is working on a reply...