Organic Groups "Context"
Im using OG and Views. Currently my views have to have a page 开发者_StackOverflowdisplay to show an event list for each group. So this means that every time a create a group I will have to create another page display in my view for another event list.
So Im wondering if I can just have 1 view with 1 page display that will show a specific event list for a specific group that would be determined through URL.
I beleive this is possible using "arguments" in views but I have no idea how this works.
Yes, you can add arguments, and then put them in the URL. You could add the "Organic groups: Groups" argument, and then make your for you path, enter "events/group/%" (or whatever you want), where the % represents the group's id. Then when you go to yoursite.com/events/group/15, you'll get the events view for the Organic Group with node id 15.
精彩评论