KK wrote: Hi Simon,
The default behaviour of cms:member_logout_link tag is to redirect back to the page the link is used from.
So, suppose a member is logged-in and is on the profile page.
Clicking the logout link will log her out and then redirect back to the original page i.e. profile page.
But now since the member is not logged-in, she is shown the login box.
If you are not happy with this default redirection, please use the 'redirect' parameter with the cms:member_logout_link tag to specify whatever page you want the user to land on after getting logged-out - e.g. the following will send her to the site's home page -
- Code: Select all
<a href="<cms:member_logout_link redirect=k_site_link />">logout</a>
Does this help?
Please let us know.
Thanks.
Hi KK,
The issue i'm having is it wont log the member out at all. it redirects back to the login page fine, which is what i'm wanting. Now if the member then goes onto the profile page without logging in they can still see the profile page rather than it asking to re-login
Also when adding a new field to be submitted with the register.php it wont automatically add onto the CMS Panel.
For example. I've added a new editable within the index page called company name. normal way, and added it into the <cms:member_define_fields />
Code in members/ index.php
- Code: Select all
<cms:editable name='company_name' type='text' />
Then within the register page.
- Code: Select all
<label> Company Name (Enter if your a company)</label><br>
<cms:input name='company_name' type='text' />
However when i look on the new submitted members profile via couch its blank when it should read what they put within the registration.