Joining data from multiple modules

Topics: Customizing Orchard, Writing modules
Jul 18, 2012 at 4:01 AM

I have a custom module that stores the user's ID from the Orchard.Users module, and when I display my modules data I would like to include the user's email address and registration status. In the old days, I'd simply create a view and join MyModule_ThePart_Record with Orchard_Users_UserPartRecord.

What is the best way to do it in Orchard using nHibernate, if possible, without relying on external data access code?

Jul 23, 2012 at 11:37 AM

Why not use one of the user profile modules that are available on the gallery? Users are just content items, and as such you can add parts and fields to them. That's what the profile modules are doing.

Jul 23, 2012 at 9:43 PM

I'm working on an Admin UI for the Downplay.Audit module. I'd like to show the username or email address but only the UserId is stored in that module. Ideally, the user interface would have the following columns:

Email   -   Date/Time   -    Activity Code    -    Details   -    Url


I accomplished it with an auxiliary module that uses System.Data to and returns an IEnumerable<T> object.