Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > One to many View modes: 
User avatar
Member
Member
Mercer - 5/25/2010 6:01:26 PM
   
One to many
Is there a way to create a family profile and link parents with child profiles? Every user can how their own users account, but is there a way to define relationships between two accounts? I would like to be able to lookup a parent's user account and see their list of children who may or may not have their own user account. Is there a way to define a custom form that supports one to many relationships?


User avatar
Member
Member
hinesnetwork@mac.com - 5/26/2010 7:43:06 AM
   
RE:One to many
I would also like to know how to do this. I would like to have assistants as sub-accounts of their managers.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/26/2010 8:31:56 AM
   
RE:One to many
Hi,

You could use one of these scenarios:

1.
You create a custom table where would be the ID of user: father, the second user ID and ID of relationship type (e.g. son).

You could use the custom tables module

This approach allows M:N relationships.

2.
You would create a custom user field (system tables overview) . The field would store e.g.:
John/son
John/wife
John/daughter

This approach allows only 1:N relationships.

If you need find all related users for John you search for : LIKE ‘John/%’. Or you may use the user id for cases when John changes his name.

In both cases you need to develop web parts for adding/creating/editing users by yourself.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Mercer - 6/1/2010 6:38:48 PM
   
RE:One to many
Thank you for your help.