简体   繁体   English

是否可以将typo3 solr搜索结果中的访问受限页面显示给未登录的用户?

[英]Is it possible to show access-restricted pages in typo3 solr search result to non-logged-in users?

The default behaviour of t3solr is to hide results with access restrictions if the currently logged in user does not have the rights to see this page (or is not logged in at all). 如果当前登录的用户没有查看此页面的权限(或根本没有登录),则t3solr的默认行为是隐藏具有访问限制的结果。

Our customer wants a different behaviour: the results shall be displayed, but be visually highlighted (by adding a css class, for instance). 我们的客户想要一个不同的行为:结果将被显示,但在视觉上突出显示(例如,通过添加一个css类)。 The (not yet logged in) user can "preview" an abstract of the desired content in the search result excerpt (to tease him) and click the link. (尚未登录)用户可以在搜索结果摘录中“预览”所需内容的摘要(以取笑他)并单击该链接。 He will then be presented the login page and redirected to his target page after login (last part is already default typo3 behaviour). 然后,他将出现登录页面并在登录后重定向到他的目标页面(最后一部分已经是默认的typo3行为)。

Does anyone know whether this is possible with the current t3solr? 有谁知道这是否可能与目前的t3solr? I think it was possible with indexed_search when I last used it some years ago, so I thought t3solr may support this as well. 我认为几年前我上次使用它时可能会使用indexed_search,所以我认为t3solr也可能支持这一点。

And no, I have not "just" tried it out yet as setting up the whole stuff takes longer than asking here before. 不,我还没有“只是”尝试过,因为设置整个东西需要的时间比之前要求的要长。 Also, I'm not sure whether I have to pay for the early access version of the t3solr to get this (possible) feature. 此外,我不确定是否必须为t3solr的早期访问版本付费以获得此(可能)功能。

Both versions of the TYPO3 extension Apache Solr are identical regarding the access rights to pages and content elements. TYPO3扩展Apache Solr的两个版本在页面和内容元素的访问权限方面都是相同的。

The requirements you are stating are not going to work out of the box as we designed the extension to be very strict on displaying only results that you are allowed to see. 您所说的要求不会开箱即用,因为我们设计的扩展非常严格,只显示您可以看到的结果。

There is certainly a way to circumvent the behaviour that would require a change in the solr access filter that we have in the extension. 当然有一种方法可以避免需要更改扩展中的solr访问过滤器的行为。 Or by assigning access rights on content level and and having a plugin displaying a teasing part only. 或者通过在内容级别分配访问权限并且仅使用插件显示戏弄部分。

We generally monitor questions about solr for TYPO3 here: 我们通常在这里监控有关TYPO3 solr的问题:

news://lists.typo3.org:119/typo3.projects.solr 新闻://lists.typo3.org:119 / typo3.projects.solr

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM