Organic Groups Layout

Written Steps

This is a members only video. Login or create a free account for instant access.

In this video you will learn how to configure Panels for your group layout.

Comments

When adding the variant - OG Node does not show up as an option? Any ideas as to why? I am running drupal 6 and have all prior modules enabled (incuding OG)

Brian's picture

OG has changed significantly from D6 to D7. If you're using D6, you should check out http://drupal.org/node/483234. Hopefully that can help you!

Hello,

I am using D7 and I have exactly the same problem, I saw in other posts that the installation order of the module can have an effect but not for me. I can't continue the training, it is a very big problem...

Does anybody found the solution ?

Regards.

After selecting layout the page, the page that is supposed to allow add of content shows up as blank... no error message or anything on a local machine. Online site generates a blank page except for a line that says "Fatal error: call to undefined method view::get_human_name() in .../../ctools/views_content/plugins/content_types/views.inc on line 82"

Any ideas???

Thanks mucho in advance.

Addendum to yesterday's comment: downloaded "og_views" module and installed and made sure had up to date views in D7 and the content pane appeared.

Brian's picture

I'm glad you got it figured out!

How do I create a different template for different groups?

Thanks

Hi Brian,
Thank you very much for creating this very useful tutorial. I like your style. It is very crisp and concise, but complete.

I was trying to repeat your example on my site using Drupal 7.8 and OG 7.x-1.3. For some reason, while creating a variant, I don't see the "view panes" when I click the "add content" button while creating the layout in Page Manager. I see Views, but not View Panes. I do have View Content Panes enabled in Ctools. Any idea why I don't see View Panes?

Interestingly, if I click on Views, I can see all the views for my site and I am able to select the OG content and OG member views that came with Organic groups. Is there any reason why I should not select the views from here instead of View Panes?

Finally, do I need to install the OG Views module? I did not see you mention it anywhere in your screencast. What does that module do?

Thank you very much, Brian.

Brian,
I figured out why View panes was not visible on my site. Apparently, you created a content pane within your views. Once I did that, I could see view panes in my Page manager.

You may want to update your tutorial #2 to let your audience know that you have a created a content pane, which you will use in tutorial #3.

Brian's picture

Actually, I didn't create anything in the second video. Everything was left at the defaults. The content panes were created automatically when everything was installed.

Brian,
Doing a fresh install of OG and Panels, I found that if you install Panels first and then install OG, it creates the contents panes displays (within Views) and sets it up correctly. However, if you install OG first and then install Panels, OG does not create the content panes display for the views that it creates.

You may want to point it out to your readers so they don't have to manually create the content panes display.

Brian's picture

Hmmm... that must be new. When I did the video I installed OG fi

Thanks for the video - it's very clear.

However, the default View doesn't show any of the nodes belonging to a group. Do you have also a video how to set up the View?

Brian's picture

It should be setup by default. When you add the "OG Nodes" view in panels, make sure you are selecting it from "View Panes" not "Views". If you do want to setup a custom view, make sure you create a "Content Pane" and not a "block", "Page" etc.

Hi Brian,
I am curious why you suggested to create a "content pane" and not a "block". I am using custom Block displays and they seem to work fine.

Thanks.

Brian's picture

When I first started using OG D7 I used blocks as well. I put together a video on how to use it until Amitai commented that he preferred to use Panels and content panes. He said it had to do with the way data is stored vs. retrieved. To be perfectly honest, I don't completely understand the benefits, but I figure, if the guy who is maintaining the module recommends a certain approach, that's the one that I'm going to use. :)

Thanks Brian.

I wonder whether he suggested that approach because it is simpler to setup a content pane in a Panel. In addition, it seems it is easier to get the contextual filters working with Panels.

BTW, I am using my View block and pages with Panels.

Thanks again for answering my question.

Great video and text!

I followed instructions, but decided to override the title in "Organic groups - OG Content create links". But that functionality isn't taking effect. It saves, and the info is "there", but the title is still the default title "Content create links".

My one difference, I am using the recommended Views release 7.x-3.0-alpha3, rather than 7.x-3.0-dev.
If I have to change to "dev" what is the process?
Thanks

Brian's picture

I just checked and it works for me.

1. Go to Structure > Pages and chose "edit" for "node template".
2. Under "Group Layout" select "Content".
3. Click the gear icon next to "OG Content create links". Choose "Settings".
4. Check "Override title" and type in what you want.
5. Click "Finish", then "Update and save".

Go back and refresh (you may need to clear the cashe) those steps work for me.

I cleared the cache, changed and saved, re-changed and saved, cleared cache, re-changed. No joy.
The data for the changed title exist, just doesn't have any effect on display. see http://sfnec.org/node/41

What's the process for changing the module version? Do I de-install the "alpha", or is there a process that has fewer steps?

Thanks again.

Brian's picture

This could be caused by Panels, instead of Views. (Or CTools etc.) But to update to the dev version, you should uninstall the currently installed module, then you'll need to ftp/ssh into your server and delete the folder. Then you can install the dev version like normal. Don't forget to clear your cache and run update.php

Wow, what a struggle to de-install all the modules. I couldn't actually get rid of Organic Groups, there may be an issue there for the experts to look at. I needed to delete some fields (which was new territory for me), including "body" in Organic Groups (as I needed to de-install Entity module).

But I did back out everything else and re-installed up to this Step 3 and it is now working as advertised.

Bottom line, using the "recommended" versions for the modules (as recommended on their individual sites) is NOT the winning path. I succeeded by using the "dev" versions.

Thanks for the suggestions and aid.

Thanks for the tutorials; they're great!

I followed your steps and have everything working as expected, except that a group member (even a group administrator) cannot see the OG Content Create Links.

A user with site administrator role can see the links, but an "authenticated user" cannot. I'm sure it something in the permissions, but I can't figure it out. Can you help?

Brian's picture

Go to People > Permissions and make sure the authenticated user has the site-wide permission to create articles, pages etc.

Of course you're right. I got so hung up in og configuration that I did not notice that my authenticated user did not have sitewide access to create articles. Thanks a million! (And thanks for responding so quickly!)

Could you tell me how to get all of the different content types for groups to show up as a menu on the side?

Brian's picture

That would be the OG Content Create Links

First of all, love your videos! Your donation page is my next destination.

How do I create a view that is sorted to only show group content from groups you are a part of? Also, if you create a private group post, people from other groups should not be able to see those nodes even if they go directly to it, right?

Brian's picture

Unfortunately, this is something that a lot of people are having trouble with, and I haven't found a solution. A couple of threads you might keep an eye on are:
http://drupal.org/node/1277790 and
http://drupal.org/node/1151648

To answer your other question, yes. In Part 4 I show you how to create private groups and posts, and explain that non-members will just get an access denied page, even if they know the URL.

Yes they are! And it looks like very recently too.

Thank you for pointing me in the right direction. I hope you enjoy the date night I just donated!

Found this screencast. Almost have it working. However, still can not get the value of the current user. This would be a great edition to your series if you made it into a screencast!
http://dev.nodeone.se/en/listing-all-content-in-a-users-groups

Hi Brian,

Firstly, Thank you so much for taking the time to share your wisdom. These tutorials have been such a great help to me.

When doing this tutorial, I don't have a group-type node in my fields list... probably a silly noob question but how do rectify this?

Thanks again!

Under my install it was just labelled Groups.

Brian,

Thanks for all your good work on this series. OG has been a particularly difficult thing for me to nail down, and your tutorials have helped a great deal.

Like others, my group layout was missing the content area after the flexible builder layout was chosen. Installing OG Views fixed that problem, although I am not sure how all this stuff ties together.

Once again, thanks!

Bob

Brian's picture

I'm glad I could help!

hi. When I try to add OG: Node is an OG group when adding a variant, I get an ajax error:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: http://iloveqatar.pjmedia.ro/ctools/context/ajax/access/add/page_manager...
StatusText: Internal Server Error
ResponseText: [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":

Can u please help me with this one?

Brian's picture

I haven't come across this. I would recommend you search the CTools issue queue. And if you can't find anything there, create a new issue.

Hi, thanks for the video, extremely useful. I followed along with everything but when I got to the point to add Field: group type, that field wasn't available. I figured I had to use Field: group (group_group) which I formatted as advised but nothing displays on the page when I'm finished, just the title but no link. In your example, just creating a group even without the panels integration generates the "request membership" link but that doesn't happen for me either. Do you have any idea what might be wrong?

Brian's picture

Go to "admin/config/group/fields" and ensure that your group bundle has the field "Group". If not, add it. The other way to add this field is to go to "admin/structure/types" and edit your group type and in the group section at the bottom, choose "Group type".

After you've done one of those, if you're using Panels, you should have that as an option now. If you are not using Panels, you should be able to Manage Display for that content type and set your "Group type" format as "Group subscription".

I figured it out, I forgot to grant the relevant permission at admin/config/group/permissions. Once again, great tutorial.

Brian's picture

That's another thing to check ;)
I'm glad you got it figured out.

This all worked out great, thanks.

However I found it mildly confusing when viewing articles as the group layout I created applied to all nodes. To fix this I edited the panel->under selection rules I selected node type from the drop down, and hit add, then selected only the "Group" content type. And saved it.

Hope this helps others.

Hey firstly awesome & 2 da point video tut .... i saw your video tut 1 and created a group. everything was perfect except for one thing, the group membership link did not appear. Then i went to video 3 and used panels and did exactly as given in the video still the group membership link does not appear....any clues to what am i missing ?

Thank you

Was simple...went to configuration > Organic Groups > OG Permission and turned on the view group field for all users and done....the link started to appear.... hope this is helpful for some other newbi like me :P

Hello,
Drupal 7.12
OG 7.x-1.3
Views 7.x-3.3
Panels 7.x-3.0

I can not display OG nodes

Thanks

Brian's picture

I'm sorry to hear that. I have the exact same modules enabled on a site, and it's working fine. Without more information there's nothing I can do, I'm afraid.

Thank you for the videos. They are really great and helpful I was trying to follow lesson 3 of Organic Group. Just as with mariusm2 here, the panel "Add Content Center" is not displaying the "Organic Group". I figure I must have overlooked a setting. But I have not clue. What determines whether or not "Organic Group" displays on the "Add Content Center" panel.

Thank you again for everything!

Great video series! Many thanks for making this available!

I've been experimenting with creating multiple page variants so I can use different layouts for different types of OGs (blogs, workspaces, discussion groups) without having to create more than one group content type.

I created a content type "Group" and used a term reference field and a taxonomy (group types). Then I created one page variant per taxonomy term. I followed the instructions in this tutorial and added an additional relationship (for the term reference field) and selection rule (for the individual term).

It works perfectly for the User1 account and for the node author/group manager, but doesn't get selected at all for group members.

I'm pretty sure the problem isn't the taxonomy term relationship as this works for non-OG type page variants....

Any thoughts?

Thanks,
Em

Issue with Views permissions, problem solved.

Hi Brian, I'm having a problem getting one of my variants to activate for a group page.

I set up my first variant to activate on any group page, following your instructions, and this works fine. However, I wanted users to have an alternative display of all the group nodes.

I tried to achieve this by creating a custom module and using hook_menu to create a new menu item which created a new path to link to the groups. My original path used the format "course/%course-name" (I'm using clean URLs) and I keyed my new menu item as "course/%course-name/resources". I then created a new variant based on my original one, which is supposed to be activated for all paths "course/*/resources". However, this variant is not being activated when the path is used.

It seems to have something to do with the fact that I am not saving the path internally in Drupal as a node alias. I am simply keying it in in my hook_menu function. When I save the path as an internal alias the variant does get activated but then this path is treated as being equivalent to my original one so they are not treated as being different.

Do you think there is a way I can get it to work using hook_menu, or maybe is there another approach I could use so that users could have alternative displays of the same group node?

Any advice you can give would be much appreciated, and thank you very much for your videos which have been very helpful so far.

The code I'm using is:

function mymodule_menu() {

$items['course/course-1/resources'] = array(
'title' => 'Resources',
'access callback' => TRUE,
'page callback' => '_getpage1',
'page arguments' => array(1),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'menu-course-menu',
'weight' => '1',
);

return $items;
}

function _getpage1($arg1) {
$path = drupal_get_normal_path("course/" . $arg1);
$node=menu_get_object('node',1,$path);
return node_page_view($node);
}

Pages

Search form

Add comment

Comments

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.