开发者

Create a View based on a SQL query in Drupal

开发者 https://www.devze.com 2023-01-23 16:26 出处:网络
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 t

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 t开发者_JS百科o 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号