Note very elegant but have you tried &includeDocs=`2,3,4,5` ect
OK I have sorted this a different way - instead of using Resource groups, I ave used a snippet on each template which is password protected, and that works fine.
Final piece of the puzzle is the field names in the Register/Login Form.
I don't want to use 'username and password' which sounds odd, but there is a good reason.
The users all have an ID number, and an account number, and we want them to use those instead.
So I have used this in my register snippet call:
&usernameField=`Account number`
&passwordField=`ID number`
but this doesn't work - am I doing something wrong?
Thanks!
Andy
If I am not mistaken, what you can do is leave the snippet call with the default terminology. Then, change the *form language* so your users know what info to put in there. A little inelegant but much easier. The form is where you tell your users what rules there are for these values, the snippet call tells Modx what these fields are called, internally. It can be password internally and in the form be anything.
But I do wonder (this is the register after all) how your users will know these values? The internal Modx user ID number will be generated when the form processes, not before, but you are going to have another number as well, called ID number?
All you seem to be doing is requiring that the user name and password be limited to digits, which I do believe you will want to look at system settings about acceptable usernames and passwords. I think the default settings are not strict though, it might require 4 characters is all.
HTH, my brain is not working at top speed at the moment.
PS if you change any of the user data field names its going to be saved in a JSON file which is not the most efficient way. Usually people just repurpose things like fax number for their special user fields. Of course for you you still need to have a 'username' and 'password' value for logging in, the fax number can't do this job easily at least. This may also be why you are having trouble (only maybe), the system may require a value for username and for password, now with your code there is none it seems. If you want to have a lot of user data then you can look at the ClassExtender extra for Revo.