[TYPO3-english] How can I redirect login url if user is logged in?

Task City taskingme at yahoo.com
Sun Jun 17 15:44:43 CEST 2012


Hello!

I have some pages of user can view, so if user is logged in, it's derectly show the content in protect page. Otherwise,it's redirected to the page to login in. That's what I should have the function to do.

Thanks and Regards!
Jeson



________________________________
 From: François Suter <fsu-lists at cobweb.ch>
To: typo3-english at lists.typo3.org 
Sent: Sunday, June 17, 2012 9:20 PM
Subject: Re: [TYPO3-english] How can I redirect login url if user is logged in?
 
Hi,

> If user is not logged in, how can I redirect link to login?

Well, you have to create a page where the login form resides. Then you point to this page with:

config.typolinkLinkAccessRestrictedPages = xx (where "xx" is the id of your page)

With the additional configuration:

config.typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_I D###

the login page will receive the URL to return to.

Or did I misunderstand your question?

Cheers

-- 
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list