如何从db获取暴露过滤器的数据? [英] how to get data for exposed filter from db?

查看:107
本文介绍了如何从db获取暴露过滤器的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Drupal 7.我创建了两种内容类型。一个是学生,另一个是CLASS。我创建了一个STUDENT类型的视图,其中有三列命名为student_id,student_name和student_class(从CLASS获取数据)。我想授予用户访问权限,以便在此视图上对student_class应用过滤器。我怎么能这样做?

解决方案

我通过以下模块解决了我的问题:



views_select_filters

I am working on Drupal 7. I created two content types. One is STUDENT and other is CLASS. i have created a view of type STUDENT which has three columns naming student_id, student_name and student_class(getting data from CLASS). i want to give access to user to apply filter on this view with respect to student_class. How can i do that?

解决方案

I have resolved my problem by using following module:

views_select_filters


这篇关于如何从db获取暴露过滤器的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆