Allow Group Members to Post Content

Written Steps

In this video we will allow group members to post content to the group.

Allow authenticated users to post content

You may have noticed that Chelsea does not have any way to post an article to the group. In order to allow her to do so, we first need to allow authenticated users to post articles to the site.

  • Go to People > Permissions

Scroll down and grant the following permissions to Authenticated User:

  • Article: Create new content
  • Article: Edit own content
  • Article: Delete own content
  • Basic page: Create new content
  • Basic page: Edit own content
  • Basic page: Delete own content

Now when Chelsea views Group #2, you'll see that she can post an article to this group because she has the site-wide privilege of "Article: Create content" and she is a member of Group #2.

Let's create Chelsea's First Article

  • In Group #2, under Content create links, click "Article"
  • Title: Chelsea's First Article (Group)
  • Body: (Lorem Ipsum)
  • Groups audience: Group #2 (this is already selected because we chose to create the article from within the group)
  • Group content visibility: Use group defaults
  • (Save)

We're taken back to Group #2 and we see the article at the top of the list. When we view the article, you might notice that Chelsea doesn't have any way to edit or delete her article. This is because it is posted to group #2, and group #2s permissions say that articles can not be edited or deleted. I'll show you what it would look like if the article were not posted to a group.

  • In Group #2, under Content create links, click "Article"
  • Title: Chelsea's Second Article (No Group)
  • Body: (Lorem Ipsum)
  • Groups audience: none (Use Command-click on a Mac or Control-click on Windows to deselect Group #2)
  • Group content visibility: Use group defaults
  • (Save)

Now, immediately we see that "Chelsea's Second Article (No Group)" is not listed on the Group #2 page. That's good, because we told it not to. If I click Home, we do see it on the homepage. Now when we click on "Chelsea's Second Article (No Group)", you'll see an edit tab and when we click that, we see that she can make any edits she would like, or even delete the article.

Let's go back home and click on Chelsea's First Article. Here we see that she can not edit this article. This is because Group #2's permissions state that users may not edit nor delete articles they post to the group.

In the next video we will take a look at what those permissions are, and how we can change them.

It is worth noting that users with the site-wide permission to create an article, who are not members of Group #2, will see the link to create an article on the Group #2 homepage, but won't actually have the option to post that article to the group, instead it will act just like Chelsea's Second Article, and not be associated with the group.

Comments

My apologies, I couldn't decide where to post this given that I don't think it's covered anywhere. Do you have any experience with using the drupal core Polls module with OG? I really want the best of both worlds here: 1. A site wide poll content type so that the admin can create polls for the entire site _and_ 2. An OG group content type poll (this would display in the panel for each group).

I can probably do it one way or the other but not both. I tried creating another Poll content type but the poll fields that are required aren't selectable. Any ideas?

Brian's picture

I haven't used polls much, but you might checkout the Webform module. It's very easy to use, and super flexible. (And you can create as many "webform" content types as you want.

I'm very new to Drupal, and OG, and your series is doing fine job of walking me through this ... I *particularly* like the summary text you provide, it lets me go back over it much more easily than trying to skip around in the video. Thank you for this effort! Now, back to learning ...

Brian's picture

Thanks! I appreciate the compliment. :)

When I (a group admin) add group content, I can select an audience, but when I save it, it does not seem to save the audience and thus the content doesn't display in the default views which depend on group audience. I can see that the audience isn't saved by logging in as site admin and viewing/editing the content where it will give me this error message.

The weird thing is that it works properly for the first few groups I created but no subsequent groups. All my groups use the same default OG permissions and the group content content type I am testing on is the same across groups.

Brian's picture

That sounds like it could be a database issue. I haven't heard anyone else mention it, so I'm inclined to think it's something specific to your setup.

Hi,
These videos are really helpful Brain. thanks for this.I followed all the steps you said in this video. but when i go in as a user and select the group which i am a member i am not able to see the "content create link" option. Do i want to enable any other thing?

I tried with drupal 7.14 version and og 7.x.1.4 and latest dev version. i am not getting the content create link anyway.

Brian's picture

Did you follow the steps in part 3 to add the content create links? (I show it at 2:34)

Sorry Brian i didnt completely looked at that video. i will check. thanks for quick replying..

Brian,

Great series, thanks for posting it.

Is there anyway to allow group members to author only for the group and not the entire site? We have research group sites at our school that I'd like to pull into OG, however I wouldn't want to let them accidentally create/edit content on the overall site.

TIA,
Aaron

I am also interested in that case scenario.

Brian's picture

At least in 7.x-1.x there is not. I haven't gotten a chance to really look into 2.x yet to see if it will be available there.

However, if you add the create links in the group, then require that content be assigned to a group, you should be good to go since the user wouldn't be able to post to any group they didn't have permission to.

Great videos, short and simple. Is there anyway to include a forum inside of a group so that members can post that way?

Really thanks for your great tutorials, you certainly help those new OG users (like me) a lot. Thanks!!

I've followed your Tutorials since Part 1, and up to this section, when I tried with [Chelsea's Second Article (No Group)], I can deselect "Groups audience" by pressing Control-click in my windows, however after I save, the Article still post to Group #2. Any idea on what I'm going wrong?

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.