[TYPO3-english] Redirect to login instead of 404 error page if fe_user has no correct permission

Pablo Feldman pablofeldman90 at gmail.com
Thu Dec 13 22:33:24 CET 2012


mmm Thanks for your answer, but it's not on an specific root line, it could
be in any part of site

*"Afortunadamente nadie pudo patentar en su día el fuego, el molino, la
escalera, la bombilla, la carretera, la danza, la partitura, el periódico,
el supermercado o la estructura de cuatro paredes con un techo, dos
ventanas y una puerta. El progreso de la humanidad no es una historia de
sucesivas invenciones originales, sino de copias gradualmente mejoradas,
ideas existentes a las que se les añade elementos innovadores."*
*
*
*
*
*
*
*Tec. Pablo Feldman*
*Web Developer*
http://www.pfeldman.com.ar



On Thu, Dec 13, 2012 at 6:17 PM, Peter Russ <peter.russ at 4many.net> wrote:

> --- Original Nachricht ---
> Absender:   Pablo Feldman
> Datum:       13.12.2012 15:25:
>
>  Hi list,
>>
>> When I trying to load a page for some special fe_group, if the user is not
>> logged in, Typo3 return a 404 error page, I think it would be better to
>> send user to login page.
>>
>> To fix this, I found I can add something like this on my localconf:
>>
>> $TYPO3_CONF_VARS["FE"]["**pageNotFound_handling"] =
>> 'USER_FUNCTION:fileadmin/**scripts/404.php:user_**
>> pagenotfound->pagenotfound';
>>
>> however, to do this, I have to do 2 redirects, loosing performance, I
>> think
>> there must be some way to redirect to login before error handler intercept
>> it.
>>
>> Any Ideas?
>>
>> Thanks in advance
>>
>
>
> If your pages in a special rootline is only available for authenticated
> user you could just add some TS to provide login and then redirect to the
> requested page.
>
> Peter
>
> --
> Fiat lux! Docendo discimus.
> _____________________________
> uon GbR
>
> http://www.uon.li
> http://www.xing.com/profile/**Peter_Russ<http://www.xing.com/profile/Peter_Russ>
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>


More information about the TYPO3-english mailing list