TYPO3-用户未登录时重定向到登录页面 [英] TYPO3 - Redirecting to login page when user is not logged in

查看:94
本文介绍了TYPO3-用户未登录时重定向到登录页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Typo3中内置了一些受限制的页面.问题是我无法自动将用户从这些页面重定向到登录页面.我怎么做?我非常需要它,尽管我花了大部分时间在上面解决它,却找不到解决方案:(

I have some restricted pages built in Typo3. The problem is I cannot automatically redirect user from these pages to login page. How do I do that? I desperately need it and cannot find a solution despite of the fact I have spent most of the day working on it :(

任何帮助将不胜感激.

推荐答案

应该可以:

# Restricted area starts at pid 123.
# Check if user is logged in:
[PIDinRootline = 123] && [usergroup = *]
# do something
[else]
page.config >
page.config.additionalHeaders = Location: http://www.yourdomain.org/login.html
[end]

在这里找到

这篇关于TYPO3-用户未登录时重定向到登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆