Consider using [LOGIN] in your template for some special advanced features.
If the user is not yet logged in, they will see a login box.
If they have logged in, then they will get their personal welcome menu.
Controlling the Menu, Member Home Page
The member options displayed in the box, are any pages password protected, hidden from main menu, and not in a submenu.
You cannot control the member home page. When a user logs in, they go to our standard member welcome page. However, you can customise the introductory text of that page, and potentially you could add a javascript redirect.... but that could cause trouble.
If you want a login page to go straight to the content of a password protected page, then you should consider doing the following:
- Link directly to the page you want. If users have logged in, they get the content immediately. If not, they have to login, then get the content immediately.
- You might also have some luck copy and pasting the HTML of a members form, then changing the form action to the page URL as above.
Stylising
Each version above has a wrapper DIV with unique ID so that you can customise the look and feel of each... Or you can put your own DIV or TABLE around the tag, and stylise it once like that.
<style>
#cmsTemplateLoginForm
#cmsTemplateLoginForm .LoginInput { }
#cmsTemplateLoginForm #memberEmail {}
#cmsTemplateLoginForm #memberPassword {}
#cmsTemplateLoginForm .loginSubmit { }
/* then after login */
#cmsTemplateLoggedIn .MemberName {}
#cmsTemplateLoggedIn UL { }
#cmsTemplateLoggedIn LI { }
#cmsTemplateLoggedIn A { }
</style>
How do I add customised text to the register and login pages?
If you want to add an option to allow people who visit a login link to create an account, you can add custom content to all login pages.
You can now assign admin access to individual pages to individual members.
Suppose you want to provide your members with an ability to register and then access some password protected pages on your website.
Here is a checklist of items to fix the reason some customers can't maintain a logged in session behind your password protected pages
Any members registration field can have custom questions added, which are accessible / editable by both the member and the website administrator
Do want your members to be able to contribute content to your website, find out how here.
Consider using [LOGIN] in your template for some special advanced features.
You can upload files and documents to a members record that only they can access.
You can have a files list available to all members (or restricted set of members as set via the SECURITY settings)
You can move a page on your website to a members only area, accessible when they login.
You can add a global message in the above the Members links or a custom message for a single Member when they log in.