We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10473
    • 44 Posts
    Hi there,

    I’m updating a site which has previously been running on MODx 0.9.6.1p2, and want to redo it in Revolution. My only problem at the moment is how to import the web users.

    It’s actually more difficult than a simple import, because I’ll be taking advantage of different contexts to offer not only multi-site but different contexts depending on whether the user is accessing the site from a desktop browser, or a phone.

    So, how can I import webusers from old MODx to one or more contexts in Revo?
      • 3749
      • 24,544 Posts
      In Revolution, there are no "web users," just users so they’ll all go in the modx_users table. I don’t know offhand if the table fields are different, but you should be able to export them to a CSV file (which might need modification if the fields are different) and then import them to the modx_users table.

      To control their access, you’ll have to assign them to user groups and create ACL entries for the groups for the various contexts. I don’t know of an easy way to do that but maybe someone else will have a better idea.

      BTW, you don’t need to use contexts for this (although you certainly can). You can just use resource groups and tie them to the user groups with ACL entries. To do it with contexts, you’ll need to "switch" contexts in order for the users to see the various documents. Only one front-end context can be active at any time and if the users will be moving back and forth between contexts, it may be easier just to use resource groups.

      This may help you understand the new security process: http://bobsguides.com/revolution-permissions.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting