-
- 70 Posts
Hi all.
Me again.
I'm wondering the best way to do this, 'cause at the moment I don't know where it is in Modx. (or I'm going about it the wrong way).
If I have (for example) 4 users (that all have their own personal field settings such as name, email etc.) and they all belong to a user group.
Let's say that user group is the client/company that is doing business with me, and that these users are employees of the company (client) using modx.
How do I make the user group the main holder of the information, such as login expiry dates, name of company, active, special company code etc.
Is this possible?
Thanks.
No, user groups are only used to determine access - although it does also have a field to determine which dashboard group members will have. You could build such a system, using a custom table, something like membergroup_attributes, tying it to the membergroup_names table. You would need a CMP (Custom Manager Page) to manage it.
If you just want to avoid setting these for every user, you could use a plugin and the OnUserAddToGroup event and automatically set the user's settings. You can also use OnUserRemoveFromGroup to clear those settings if necessary.
That would probably be a popular add-on component package. It sounds pretty useful and actually rather logical.