Here's a quick transcript of Niels' screencast. I have followed these steps and successfully added membership. Maybe there is a step in here you missed because the screencast moves through the steps very quickly?
Also, there is a bug that doesn't let you protect a node with different memberships than its parent node, but this is easily resolved in the source code. See
http://forum.umbraco.org/5836 for more on that.
Hope this helps...
cheers,
doug.
How to password protect pages in Umbraco & create user registration forms
(a quick transcript of steps from Niels' screencast)
=========================================================================
0. Create new textpage called Login
1. Create new member group ("Partners")
2. Right-click a folder in the contents section;
select Public Access menu
3. Select Advanced
4. Add Partners
5. Select Login page (don't worry about
error page; we'll use the login page for errors)
6. Import Umbraco Member Controls package
7. Create 3 new templates (Register; Sign In; Password Reminder)
8. Copy HTML from the text page and paste in each template to get started
9. Select Main for the template master
10. Sign In : Insert the Member Login macro in the body area of the HTML
- if Log out only; won't show uname and pword fields
- Logged in Text; "You're logged in as %%NAME%% - "
- Sign out text; "Sign out"
11. Allow the three new templates in the Textpage Document Type
12. Edit the Sign In page in the Content section
- bodyText = "Here you can sign in"
- Template = Sign In
13. Create a member who can sign in...
- Create Member Type called "Partners"
- Create a Member (of type Partner) called Niels Hartvig
- Add user info and add to the partners group
14. To let people register directly from the website
(rather than manually create all the members as done above)...
- Register template: paste in standard HTML
- Insert Member Signup macro in the bodyText area
- Member Type Alias = Partner
- Member Groups = partners,guest,gold
- Redirect on success = the products page
- Error username taken = "username is already in use, pick another
- Error email in use = "email is in use,
use the password reminder to get your login and password"
15. Create a "Register" page beneath the existing "Sign in"
page in the Content section
- document type= Register
- publish
16. Edit Password Reminder template
- Insert default HTML
- Select Main master template
- Insert Member Password Reminder macro
- Error Message Email Not Found = "Your email isn't in our records"
- confirm message = "And email has been sent to you with your info"
- email from = "infor@unbraco.org"
- email subject = [umbraco] Password Reminder
- email body = "Hi, %%NAME%%! Your username is %%USERNAME%%,
your password is %%PASSWORD%%. Cheers."
17. Create a "Password Reminder" page beneath the
existing "Sign in" page in the content section
- document type = password reminder
- publish
MVP 2007-2009 - Official Umbraco Trainer for North America -
Percipient Studios