Drupal Views 限制群组成员发布的内容
我有各种不同的内容类型,我想使用视图进行过滤。
假设一个块仅显示您所属的群组中发布的内容。我已经创建了通用视图,到目前为止,它显示了该类型的所有内容,但我正在努力将其链接到仅在您所属的组中发布的内容。
我查看了有机组过滤器,但没有运气。我怀疑我可能需要利用某种关系,但我被困在那里。
任何帮助将不胜感激。
I have various different content types and I want to filter by using views.
So say a block only displays content posted in groups that you are a member of. I've created my generic view which so far displays all content of that type, but I'm struggling with linking this to content only posted in groups your a member of.
I've looked at the Organic Groups filters but no luck there. I suspect I might need to use some sort of relationship but I'm stuck there.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发现您需要在有机组:组节点(帖子)和有机组:组成员过滤器之间设置关系。
Found out you need to set a relationship between Organic Groups: Group node (post) and Organic Groups: group Member filter.
有几种方法可以解决这个问题。
我更喜欢使用分类法对所需内容进行分类,并根据类别在视图中设置关系。
第二种方法是根据内容字段使用来自 CCK 的关系。
There are couple of ways of solving this.
The one which i preffer is using taxonomy to categorize the wanted content, and set the relashionships in the view depending on the category.
The second way is to use the relashionships depending of the content fields, from CCK.