开发者

Drupal Views limiting content posted by group membership

开发者 https://www.devze.com 2022-12-27 17:40 出处:网络
I have various different content type开发者_高级运维s 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 vie

I have various different content type开发者_高级运维s 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.


Found out you need to set a relationship between Organic Groups: Group node (post) and Organic Groups: group Member filter.


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.

0

精彩评论

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