tx_news 可以通过url 访问限制区域中的文章

tx_news article in restricted area can be accessed via url

我 tx_news 安装了 TYPO3 8.7。我用了两次插件,一次在禁区,一次在public区

我注意到,如果我将禁区文章的url路径段粘贴到public区详情页的url中,该文章将不受任何限制地显示。

示例:
一篇文章的publicurl是
https://example.com/news/artikel/my_public_article

如果我现在把/my_public_article换成url限制文章的路径段like
https://example.com/news/artikel/my_restricted_article
文章将被展示。

我怎样才能避免这种情况?

我已经在 public 详细信息页面上将插件的起点设置为 public 记录文件夹并将递归设置为 0。

可能的解决方案:设置每个新闻记录的访问权限或在流体模板的详细视图中按类别过滤(如果用户已登录,则显示记录内容​​)。

您可以设置以下 TypoScript:

plugin.tx_news.settings.detail.checkPidOfNewsRecord = 1

来自news documentation

If set, the detail view checks the incoming news record against the defined starting point(s). If those don’t match, the news record won’t be displayed.