I have OG, Category and Views modules. I created a container and categories. Under container information types, I checked on all content types, including "group". I excluded "container" and "category".

When I create a View to list all group (content type group only) nodes by category, they all appear.

However, when I create a View to list all nodes by category, the nodes (all content types) associated with groups DO NOT appear. That is to say:

1. Event A, Page B and Blog C belong to OG Group D.
2. Event A, Page B and Blog C and OG Group D all belong to Category E.
3. Event A, Page B and Blog C will NOT appear on View to list all nodes in Category E.
4. If I remove OG Group D from Category E, then Event A, Page B and Blog C WILL appear on View to list all nodes in Category E.

The only way nodes associated with groups will appear in a View by category is if I exclude the group from the category. Of course, if I do that, then I can no longer create category-sorted Views that include the groups. Catch-22.

Any reason for this, and any solution / workaround?

Thanks!

-ron

Comments

SomebodySysop’s picture

The solution to this problem is simple, but weird.

First of all, when I create the container for the category, I need to add "category" to the list of node types for the container.

Next, I create a category. After the category is created, I need to make the category a member of itself. See, told you it was weird.

In other words, using the previous example, if I create Category E. After it is created, I need to edit it. In the "categories" window for Category E, I need to select "Category E", and re-submit. In more other words, Category E needs to belong to Category E in order for any groups assigned to it to be pulled up under Category E.

Hope this make sense.

What this allows me to do, in the end, is order my groups into categories for which I can create views. For example, let's say I have a series of groups for cities. I can categorize them by state and create hiearical navigation menus.

California
  Los Angeles
  San Francisco
  San Diego
Florida
  Miami
  Key West
  Tampa
Nevada
  Las Vegas
  Reno

Cool, huh?