I'm sure you don't want to have to create every user yourself, so the next step is to set up the WebSignup online registration system. If you installed the sample website when you installed MODx, most of this has already been done for you.
The Registration Form
First, we'll set up the page for the registration form. Rather than having a separate login page, I chose to have the login form appear as a block in the right sidebar. I slightly modified the basic form template chunk to add a "Register" link.
Create a new document to be your registration page. It should not show in the menu, should be published, not searchable and not cacheable.
Take note of the new document's ID, and edit the link in the login form chunk to reflect that ID.
The WebSignup Snippet
In the new registration document, the only content is the WebSignup snippet. Make sure the &groups option is the group we created in the previous part of the Tutorial.
[[WebSignup? &groups=`Blog Readers`]]
Now our users can register themselves, login, and comment on our blog postings.
WebSignup Options
- &tpl - (Optional) Chunk name or document id to use as a template.
- &groups - Web users groups for users to be assigned to. Separate multiple groups with a comma.