I am looking to add some additional content to users that should be required for users of type X example: Sales Associate's require: Profile Picture
just breaking into Orchard, i have done some looking for something like this just no luck so far.
GRACIAS DE ANTEMANO
preguntado el 05 de mayo de 13 a las 18:05
Every user in Orchard is of type
User - there is no distinction. So you may approach the problem twofold:
Create your own content types to describe various users. By default there is one type in Orchard that describes a user -
In order to make it work you'd need to write your own version of
Orchard.Usersmodule that would take that information into account. It may be quite a bit of work though as you'd need to override any piece of functionality that's there that uses the hardcoded
"User"type. Best and cleanest solution, but also the most complex.
Use a single content part attached to
"User"type, similar to how the profile modules (eg. Contrib.Profile) work. The distinction between different user types can be done on the driver level. You're free to return different content for a given part, based on some custom logic (eg. the stored value describing "user type"). Lot less flexibility than the first approach (all other parts attached to a user will be shared by everyone), but also lot less coding.