[TYPO3-UG Freiburg] Weiterleitung nach Login

Christian Schlack cschlack at gmx.de
Tue Nov 4 19:46:24 CET 2008


Hallo Nico und alle,

folgendes habe ich benutzt für eine Umleitung auf eine Login-Seite mit  
Weiterleitung auf die ursprüngliche Seite.

Liebe Grüße
Christian


config.typolinkLinkAccessRestrictedPages = <id>
config.typolinkLinkAccessRestrictedPages_addParams =  
&redirect_url=###RETURN_URL###

lib.MainMenu=HMENU
lib.MainMenu {
   1.showAccessRestrictedPages = <id>
   1.showAccessRestrictedPages.addParams =  
&redirect_url=###RETURN_URL###
}

aus http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/7/3/

----------------------------------
If set, typolinks pointing to access restricted pages will still link  
to the page even though the page cannot be accessed. If the value of  
this setting is an integer it will be interpreted as a page id to  
which the link will be directed.

If the value is “NONE” the original link to the page will be kept  
although it will generate a page-not-found situation (which can of  
course be picked up properly by the page-not-found handler and present  
a nice login form).

See “showAccessRestrictedPages” for menu objects as well (similar  
feature for menus)

Example:

config.typolinkLinkAccessRestrictedPages = 29

config.typolinkLinkAccessRestrictedPages_addParams =  
&return_url=###RETURN_URL###&pageId=###PAGE_ID###

Will create a link to page with id 29 and add GET parameters where the  
return URL and original page id is a part of it.
----------------------------------


More information about the TYPO3-UG-Freiburg mailing list