[TYPO3] on login redirect back to the original request page

Darko Jr. Gonzalez jkokino at gmail.com
Sat Jun 21 14:35:59 CEST 2008


Hey!

I have this menu:
menu = HMENU
menu.special = directory
menu.special.value = 7
menu.entryLevel = 1
menu.1 = JSMENU
menu.1{
	1.target = _self
	firstLabelGeneral = lorem ipsum...

	showAccessRestrictedPages = 18
	showAccessRestrictedPages.addParams = &redirect_url=###RETURN_URL###	
}

All is well and works fine. I am redirected to the login page (18) and 
upon successful login, back to the original page. My question: How do I 
do this without a menu?
Page1
Page2
|---Page2.1
|---Page2.2 (restricted page)
|---Page2.3
Page3
Page4
LoginPAGE

Lets say I have links within the content elements at Page1,Page2,Page3 
and Page4 which point to Page2.2. How do I create the redirection and 
make it automatic so that when I create a link that goes towards 
Page2.2, the request first is routed to LoginPAGE, then routed back to 
the restricted page (in this case Page 2.2) as per the request from any 
of these links?

Hints?

Thanks

Darko


More information about the TYPO3-english mailing list