[TYPO3] Using a different page as current for the menu

Rudy Gnodde gnodde.rudy at wag.nl
Wed May 31 09:48:55 CEST 2006


Hello everyone,
 
I have a couple of pages that are visible in the menu (at different
levels), but require you to be logged in. If you click on the menu item
it automatically redirects you to a single login page, using
showAccessRestrictedPages, and showAccessRestrictedPages.addParams to
set a redirect after login. Unfortunately the login page is in a
different location than (some of) the restricted pages, so the menu
changes. Is there any way to "fool" the menu into thinking the current
page is the restricted page, either through TypoScript or PHP?
 
The page tree looks something like:
 
Root
- Page 1
-- Page 1.1 
-- Page 1.2 
-- Page 1.3 (restricted)
- Page 2
-- Page 2.1
--- Page 2.1.1 (restricted)
--- Page 2.1.2
-- Page 2.2 
-- Page 2.3
- Page 3 (restricted)
- Login page

So if someone goes to Page 1.3, 2.1.1 or 3 they will be redirected to
the Login page. After login they are redirected back to the restricted
page (which they can view now).

I have searched the mailing lists and documentation and haven't been
able to find anything I can use for this.
 
Thanks,
 
Rudy Gnodde
WIND Internet
http://www.windinternet.nl



More information about the TYPO3-english mailing list