This project is read-only.

User extended with part and controller

Topics: General, Writing modules
Aug 9, 2011 at 9:01 PM

I have extended the default Orchard user type by an custom Part. When you edit a user it gives you the possibility to create an other record (with part) which is related to the Part which extends the user.

The problem is that when you create a new user, the extended user part is not ready saved so it has no id yet to refer to. How can i insert dynamiclly from the controller a new record for this extended user part?

Aug 10, 2011 at 2:23 PM

Have you checked out the Profile module?

It's geared specifically towards extending the user part. To use it, add the Profile Part to the User content type. Then just add Fields to the Profile part.

Aug 10, 2011 at 7:11 PM

Thanks. Yes i already checked that out but i found my solution. I added a Id property to my Part and the problem was fixed!