Hi,
I am trying to configure a panel node template (overriding nodes which are groups) but i should have been misunderstanding some concept for 2.x version because I dont get the OG relations properly.

Have the entityreference dependence changed the settings described on http://drupal.org/node/1041198?
I set:

  • Selection Rules: Selected "OG: Node is a group"
  • Contexts: Selected "Node" : I think that in 7.x-1.3 was posible to set "Node being viewed" instead a specific one like in 2.x
  • Under Relationships: There is no "OG group from node" and i tried with "OG membership from a group node and user"

which give me this error: Notice: Undefined offset: 1 en og_membership_from_group_and_user_context() (liña 28 de /srv/www/.../sites/all/modules/og/plugins/relationships/og_membership_from_group_and_user.inc).

Some clue about this?
greetings and thanks

Comments

amitaibu’s picture

Are you passing it the user context as-well?

qpro’s picture

Easy, it works, thanks, but something isn´t clear for me yet:

In contexts "Node" , why is "Enter a specific title or ID of a node entity" compulsory? Shouldn´t it will be "Node being viewed" to have only one panel variant for every nodes?

As aditional information :
I try setting a random node in the context "Node" and then in the "OG membership from a group node and user" relationship...
-- when i select the option "Node being viewed" it breaks in an HTTP 500 Internal Server Error.
-- when i select the option "Node" shows this error "Notice: Undefined index: relationship_og_membership_from_group_and_user_1 en theme_ctools_context_list() (liña 230 de /srv/www/.../sites/all/modules/ctools/includes/context.theme.inc)."

greetings

amitaibu’s picture

In contexts "Node" , why is "Enter a specific title or ID of a node entity" compulsory? Shouldn´t it will be "Node being viewed" to have only one panel variant for every nodes?

It sounds you are trying to load an incorrect context. you should have the node in the Panels context already.

peem83’s picture

I have the same issue but in case when I want to display block with the group content on other group content page. I have two content types (group content), when I view the first one I want to show block with other content for related group.

jaydarnell’s picture

I am relieved to see that I am not the only person who is having this problem. Unfortunately in reading through the four comments on this issue I'm not sure if the actual problem IS a problem or if the design of OG groups has simply shifted to where the "OG group from node" option is no longer necessary as a relationship option when trying to set up a panel node template override. Amitaibu could we please get some additional clarification on this?

Panels is the recommended display option for organic groups and all the guides found online say that we should use the "OG group from node" option for the relationship in creating our panel node template override. Take the following link for example:

http://drupal.org/node/1041198

However, as qpro said this option is no longer available. Is this a bug or was the option removed because it is no longer the route to go when setting up this override? I have some experience with panels but not enough to confidently know what I should be doing when the avenue recommended in the community documentation takes me down a path that no longer exists. Please advise. Organic groups is a fantastic module and a central part of the site I'm currently working on. I'd like to know how to set up this node template override properly.

Thank you!

jaydarnell’s picture

Status: Active » Needs review
amitaibu’s picture

Status: Needs review » Active
jaydarnell’s picture

Thank you in advance for your continued work on this fantastic module Amitaibu. I'm not well versed enough in drupal development to be of direct coding assistance yet but if I can help in any way I am happy to do so.

amitaibu’s picture

Status: Active » Fixed

Please enable the "OG-example" module, that comes with OG. It should show a good example on how to use Panels with 2.x

jaydarnell’s picture

Thank you Amitaibu. I will try this today and report back!

jaydarnell’s picture

That worked wonderfully! Would it be beneficial for me to dissect this and update the documentation here to reflect the new steps necessary to make this work: http://drupal.org/node/1041198

Or do you think the steps may change enough between now and when this dev copy is officially released to merit holding off?

amitaibu’s picture

Thanks, you should probably open a new doc page, with Panels integration for 2.x -- it shouldn't change (or change much) for the release.

jaydarnell’s picture

Awesome! As soon as I wrap up some work this afternoon I'll take some time to start a new doc page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

shenzhuxi’s picture

Why panels + page manager + og example 7.x-2.x only work on clear installation?
If I use panels + page manager + og example 7.x-1.x and upgrade to 7.x-2.x, the panels will not be displayed on the group page.

Yuri’s picture

The new doc page, with Panels integration for 2.x still is not available. @Copperbot, are you still planning to write that?

jaydarnell’s picture

My multi-site buildout I was working on in June is still underway but things are starting to slow down. I would be happy to write this new doc as soon as the project wraps up. I cannot say when that will be at this point but we are in the final stretch now. I'll get to this as soon as possible.

Dek-1’s picture

Hi,

Thanks for all your work on this.

Is there any chance this documentation (http://drupal.org/node/1041198) will eventually be updated?

I can't enable OG Example as suggested above because both the Features and Message modules blow up my site with an 500 Internal Error when I attempt to enable either and they are both required by OG Example. I ended up having to manually disable the modules in the database to restore my site even trying it.

Would be very nice to know what changes were made so I can successfully integrate OG with Panels using 7.x-2.x.

Thanks

Dreao’s picture

Can you please explain HOW to do this? I also have the:

Notice: Undefined offset: 1 in og_membership_from_group_and_user_context() (line 28 of C:\Users\...\Sites\acquia-drupal\sites\all\modules\og\plugins\relationships\og_membership_from_group_and_user.inc).

Sorry for being a total noob... :/ Perhaps there is a video?

Dreao’s picture

I fixed it by deleting the og_membership_from_group_and_user Relationship. .... But now I can not have anyone register... lol any ideas?

Dreao’s picture

Fixed it by disabling mesanger

ikaros123’s picture

Check out this also ...
it seems that you don't need to configure this in the new version of Organic Groups
https://drupal.org/node/1041198#comment-6885006

Yuri’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

For me it's still unclear what causes this error to appear and how to configure OG 7.X-2.X with Panels correctly, with context and relationships. Documentation also is not available for the OG 7.X-2.X Panels integration.

ergophobe’s picture

Yuri - I have

  • Required relationship (Views): OG Membership: OG Membership from Node
  • Contextual filter (Views): Group ID

Then in Panels - no context, no relationship. Simple as that.

joelpittet’s picture

Status: Active » Closed (outdated)

Drupal 7 reached end-of-life and the D7 version of Organic Groups is no longer being developed. To keep the issue queue focused on supported versions, we’re closing older D7 issues. If you still have questions about using Organic Groups on Drupal 7, feel free to ask. While we won’t fix D7 bugs anymore, we’re happy to offer guidance to help you move forward. You can do so by opening (or reopening) a D7 issue, or by reaching out in the #og channel on Drupal Slack.

If this issue is still relevant for Drupal 10+, please open a follow-up issue or merge request with proposed changes. Contributions are always welcome! 💙

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.