Organic Groups / Drupal Commons

Events happening in the community are now at Drupal community events on www.drupal.org.
jalake's picture

Hey folks!

I'm new to both Drupal and this group, so hello to everybody.

I've got a new project (and new CMS direction at work) that requires me to create (or replicate from both Wordpress and ExpressionEngine) various communities of practice within Organic Groups.

I have almost no control over the server setup and am required to keep everything within the context of an individual group. We're also using Drupal Commons as a based, so Drupal 6.

I've been able to create nodes such as "Forum Topics", "Polls", "Announcements" etc, but when it comes to displaying pages containing Views of these items I'm getting a bit lost.

I'm also don't seem to be having much luck w/ finding resources for OG in general.

If anyone has any resources they could share with my, I certainly would appreciate it.

Thanks,
Jerry

Comments

themes / context

jalake's picture

So far the best thing I've come up with is to create pages within my group and then embed views for the specific pages. This seems to maintain my theme better than creating views with page displays and attempting to set the group context.

Thoughts?

a drupal journey

Larry Jones's picture

Jerry,
Your question reminds me of my own Drupal journey (I imagine others have similar paths):

Drupal Gardens, then Drupal Commons, commit to Organic Groups, then CiviCRM, commit to the current default theme, then Fusion, wonder where all my time went, attend a Drupal Camp or User Group, get five different answers to one simple question, discover that everyone else can create a new Drupal 7 site in on their mac with MAMP and the latest greatest modules and themes in about one minute, wonder why I wasted all that time on the wrong modules, themes, hosts, work practices, discover drush, lectured again on the importance of git @dev-@stage-@live, wonder (again) why I’m so stupid, hear thanks again from someone I don’t remember helping, realize I’ve actually got multiple drupal 7 sites online that I was forced to launch before I was ready, switch hosts, lose another day figuring out how I ever got drush to work, commit to omega, then OpenPublic, ...

wait - what was the question? Oh yes, where is documentation on using Organic Groups on a Drupal Commons site built on Drupal 6?

Get “The Definitive Guide to Drupal 7,” Apress 2012, a 1000-page bargain. You might find a pdf version online to use while you wait for your copy to arrive. And join a local Drupal user group. If there’s not one nearby, start a Drupal Meetup. Worked for me.

Welcome to Drupal.

Larry, That is a hauntingly

jalake's picture

Larry,

That is a hauntingly accurate depiction of what I've been through thus far. At least I have the luxury of not choosing (or installing or maintaining) my platform. I'm using Commons / OG for better or worse.

At this point I've got a lot of things functional through trial and error. A couple things that I still need to suss out:

  1. Posting multiple nodes from the same page (to re-create existing functionality from the WP version)

  2. Discrete forums for OG looks like a no-go as the Forums OG module is no longer available. I may explore using "Discussions" as an alternative.

  3. Group messaging / private mesages. This may be the least painful. Haven't looked into it yet.

Thank you for the advice and the encouragement. I'm sure there a billion other things that I'll collide with. Hopefully I can get them wrangled before deadlines loom too large.

Another Question

jalake's picture

Ok, more questions in my quest.

If I create a custom content type, how can I create an "add" form on the frontend?

If I use this:

$node = new stdClass();
$node->type = 'opt1q1';
module_load_include('inc', 'node', 'node.pages');
$output = drupal_get_form('opt1q1_node_form', $node);
print $output;

I get the add form embedded in my page, but I only need a subset of the fields. (I especially don't need many of the default fields)

Can I build a form via the form api that directs to my content type, or is there a better way to do this? Using a custom template is not a viable option as far as I know since I am confined within the OG space.

Cheers,
Jerry

San Diego DUG

Group categories

Event Classifications

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week