We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36763
    • 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
      • 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.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 36763
          • 70 Posts
          Thanks Susan for your quick reply. That makes sense. I guess I just do the first option and make a few custom things then. smiley
          • That would probably be a popular add-on component package. It sounds pretty useful and actually rather logical.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 36763
              • 70 Posts
              Quote from: sottwell at Sep 29, 2013, 03:32 AM
              That would probably be a popular add-on component package. It sounds pretty useful and actually rather logical.
              Yeah, I was a little surprised to not find it built-in myself.

              I'm going to go ahead and create something, but honestly, CMP and most of the custom ModX stuff confuses me at this stage. So it'll probably be done just using the ModX "includes", which will give me the interactions I need with the DB...