Hi there,
After installing FEU, CustomContent and SelfRegistration everything works just fine.
I have 3 templates and 3 pages.
- Login page with a Login template (this is the first page to be displayed when you access www.domain.com)
- Registration page with a Registration template (looks like login, except with SelfRegistration module instead of FEU module)
- Home page with Home template (this is where my authenticated users land when they log in. You have to be authenticated to watch this page)
The Home page is totally different from the other two pages. There is menus, content etc. The other pages are blank, except for login/registration forms.
So, now when users are logged in and they open a new tab, or window, and enter the domain name (www.domain.com) in the browser address bar, the Login page are displayed with a "Welcome user@name.com" "Log out" message.
I want them to see/get redirected to the Home page if they are authenticated and logged in.
Any ideas that could help me?
Thanks in advance
Qwalk
Customizing FEU
Re: Customizing FEU
at the top of the Login page template
{if $ccuser->loggedin()}
{redirect_page page='home'}
{/if}
but why is the Login page the first page (essentially the homepage) of the site?
I would make the Home page the true homepage, and then add this code at the top of the Home page template (and remove the suggested code above from the Login page template):
{if !$ccuser->loggedin()}
{redirect_page page='login'}
{/if}
{if $ccuser->loggedin()}
{redirect_page page='home'}
{/if}
but why is the Login page the first page (essentially the homepage) of the site?
I would make the Home page the true homepage, and then add this code at the top of the Home page template (and remove the suggested code above from the Login page template):
{if !$ccuser->loggedin()}
{redirect_page page='login'}
{/if}
Re: Customizing FEU
Hi,
Of course. I just chosed the Home page as default page. Now everything works fine.
Sometimes when you are doing the same thing for hours, the simple things can be hard to remember. Lol.
Thank you very much for the reply and solution.
Qwalk
Of course. I just chosed the Home page as default page. Now everything works fine.
Sometimes when you are doing the same thing for hours, the simple things can be hard to remember. Lol.
Thank you very much for the reply and solution.
Qwalk