Drupal Views:如何记录搜索?

发布于 2024-09-24 12:59:29 字数 44 浏览 0 评论 0原文

是否有一个模块允许我记录在视图上进行的所有搜索?

谢谢 !

Is there a module that allows me to log all the searches made on a view ?

Thanks !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放血 2024-10-01 12:59:29

我认为您需要编写自定义代码来实现这一目标!我假设您了解一些有关编写 Drupal 自定义代码的基础知识。您将需要使用在显示视图之前调用的挂钩。在挂钩中,您应该记录您想要的任何信息,例如在公开的过滤器中输入的关键字。

请参阅http://drupalcontrib.org/api/group/views_hooks/6您可以在视图中使用的挂钩。

我猜你可能会使用类似 hook_views_pre_render 的东西

I think you will need to write custom code to achieve that! I'm assuming you know some basics about writing Drupal custom code. You will need to use a hook that gets called before your view is displayed. In the hook you should log whatever information you want e.g. the keyword that was entered in the exposed filter.

Please see http://drupalcontrib.org/api/group/views_hooks/6 for the hooks that are available to you in Views.

I'm guessing you would probably use something like hook_views_pre_render

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文