在 Drupal 中基于 SQL 查询创建视图

发布于 2024-09-30 13:09:25 字数 224 浏览 4 评论 0原文

有没有办法在 Drupal 中基于自定义 SQL 查询创建视图?我进行了查询来测试我的结果,一切都很好,但不想经历尝试通过视图 UI 重新创建相同结果的整个过程...

我需要将其生成为视图以使用公开的过滤器和能够创建不同的显示模式,这就是为什么我不简单地执行命令并显示结果。

我发现一个名为“基于查询的视图(Q-Views)”的旧模块可以完成这项工作,但它看起来已被弃用。

谢谢, 坦率

Is there a way to create a View in Drupal based on a custom SQL query? I made the query to test my results and everything is fine, but don't wanna go through the whole process of trying to recreate the same via the View UI...

I need to generate it as a View to use the exposed filters and be able to create different display modes, that's why I don't simply execute the command and display the results.

I found an old module called "Query-Based Views (Q-Views)" that would do the job, but it looks deprecated.

Thanks,
Frank

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

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

发布评论

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

评论(1

忆梦 2024-10-07 13:09:30

方法之一:您可以使用关系。因此,编写自己的查询,添加视图支持并附加到当前视图......

One of ways: You can use Relationships. So write own query, add views support and attach to current views...

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