Closed (fixed)
Project:
Context OG
Version:
6.x-3.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2010 at 19:13 UTC
Updated:
10 Sep 2010 at 17:45 UTC
I'm having trouble understanding why or in what situation using OG -group node context would be valid. Wouldn't using the node type context be the same thing since the group nodes are node types?
Comments
Comment #1
marcp commentedUse the OG - group node context when you want to treat different groups of the same type differently (or groups of different types the same).
For example, if School is a group type and there are 3 schools on your site: school/1, school/2, and school/3. If you want your context to include only schools 1 and 3 then you'd use the "OG - group node context" condition.
You may also have a group type called Community and there are 2 communities on your site: community/1 and community/2.
Now, if you have a reason why school/1 and community/2 need to be treated the same, set up an OG - group node context and select school/1 and community/2.
Comment #2
jaarong commentedHey marc, thanks for the explanation. I used the wrong condition in my question though, I was actually referring to OG group type context. Wouldn't it be the same to use node type context and group type context?
Comment #3
marcp commentedI think I understand your question now, if you're talking about the node type context that comes standard with Context.
The OG group node context condition provided by Context OG will be satisfied any time you are looking at a node of the selected "group node types." It will also be satisfied any time you are looking at a node that is posted in one of those groups. It will also be satisfied any other time the group node is "in context" according to OG. Does that make sense? It's probably not well documented, so if you feel like you can improve on the documentation, a contribution in that area would be much appreciated!
And, if I still haven't properly explained it, please let me know.
Comment #4
jaarong commentedAhh, thank you, yes, that helps. Something that gives you context for the group type or nodes under that group type would be helpful. I think that I have just figured out that I structured my group nodes in the wrong way. I probably should have structured it around what needed to display on those pages, instead of organizational structure.
Comment #5
marcp commented