Re: Displaying "Welcome, please log in", but hiding after logged in
Posted 14 years 5 days ago
This isn't actually a RocketTheme issue, but with the forking of Mambo and Joomla, I'll be damned if I know of the best choice for a forum resource to get some assistance. I'm hoping you fine people can point me in the right direction. I'm making all of my content "Registered", so that users have to be logged in to see...anything. I want to accomplish the following:
1. Have a "Welcome to...Please log in page."
2. Upon logging in, the "Welcome" page is no longer displayed.
#1 is not a problem. I have one piece of contact that is set to "Public", everything else is "Registered". However, how can I hide this "please log in" content from the Frontpage AFTER the user has logged in? I only want that content item displayed to non-logged in users.
Been scratching my brain. Can't come up with an idea on how to accomplish this.
Re: Re: Displaying "Welcome, please log in", but hiding after logged in
Posted 14 years 2 days ago
Here's a trick that will work ;D
Create two versions of your template.
In template number one, create a module position. For example left.
In template number two, create the same module position, but name it different. For example user1. Make sure you don't use module position left anywhere in template number 2.
Publish your login module in a page with template one, on postion left. Make sure in the module parameters you set the login redirection URL to a page that uses template two.
On all other pages user template two. Beacuse the login module is on position left, and because that module position doesn't exist in template two it won't show up. Just create a logout option in your menu that simple links to the URL with the page that has template one active. The login module is visible there with the logout button.