We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21120
    • 30 Posts
    A few questions:

    Say I want a "clients" table created that holds additional user data, like "lastPayment" or "deadlineDate".
    Since the tables "users" and "user_attributes" already exist, i don’t think i need to define those in the schema, but how do i reference the relationships in the model?

    instead of extends="xPDOSimpleObject", should the object show extends="modUser"?

    Would i need to write a plugin to add rows to the clients table when new users are created, or will that be taken care of automatically?

    thanks!
      • 22303 MODX Staff
      • 10,725 Posts
      You could do this without modifying the schema and simply using plugins, but the recommended approach for Revolution is going to involve extending the modUser class, so you can add relationships and modify behavior in the data "model" layer. You could still use plugins, but it wouldn’t be required to get your custom data saved.

      We’re working on a tutorial on how to do this (modxcms.com is using this technique with our Crowd identity service via SOAP) as well as working on how to allow extensions to the user management UI in this regard.

      Just a little more patience as we refine the implementation based on our experiences...
        • 1169
        • 312 Posts
        @OpenGeek

        I know you are busy but do you have any idea how long.

        I have been thinking of a form with dropdown fields for creating the db XML Schema.
        Then using dbGenerator for creating tables and then models and maps.

        I was wondering how you would be able to create the XML part or the file for the dependencies.
        And if more than one table is required also with dependencies.


          DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
          • 1778
          • 659 Posts
          Quote from: OpenGeek at Apr 22, 2010, 09:44 AM

          You could do this without modifying the schema and simply using plugins, but the recommended approach for Revolution is going to involve extending the modUser class, so you can add relationships and modify behavior in the data "model" layer. You could still use plugins, but it wouldn’t be required to get your custom data saved.

          We’re working on a tutorial on how to do this (modxcms.com is using this technique with our Crowd identity service via SOAP) as well as working on how to allow extensions to the user management UI in this regard.

          Just a little more patience as we refine the implementation based on our experiences...

          Hello,
          Is there any news on this ? ... It would be so helpful to have a detailed tutorial "how to extend the core tables"...
          Thanks
            • 22303 MODX Staff
            • 10,725 Posts
            Quote from: anso at Jul 05, 2010, 04:38 AM

            Hello,
            Is there any news on this ? ... It would be so helpful to have a detailed tutorial "how to extend the core tables"...
            Thanks
            Our first priority is getting product ready for final release, but I am working on this. In the meantime, have you seen this example?
              • 1778
              • 659 Posts
              Quote from: OpenGeek at Jul 05, 2010, 12:55 PM

              Our first priority is getting product ready for final release, but I am working on this. In the meantime, have you seen this example?
              First priority for the final product, I totally agree... And thanks for pointing the example I had not seen it ...
                • 4971
                • 964 Posts
                Any timing of when RC-3 is coming out?
                SHould we start now with RC-2 or wait for RC-3??
                  Website: www.mercologia.com
                  MODX Revo Tutorials:  www.modxperience.com

                  MODX Professional Partner
                  • 22303 MODX Staff
                  • 10,725 Posts
                  Quote from: charliez at Jul 05, 2010, 01:56 PM

                  Any timing of when RC-3 is coming out?
                  SHould we start now with RC-2 or wait for RC-3??
                  We’re planning to release RC3 this week.
                    • 4971
                    • 964 Posts
                    Thanks Jason... [thumb up]
                      Website: www.mercologia.com
                      MODX Revo Tutorials:  www.modxperience.com

                      MODX Professional Partner