Organic+groups

=Module 2: Organic groups=

__Description__
This is an essential module in order to create a SNS in Drupal. Organic Groups module enables users to create and manage their own 'groups'. Each group can have their own subscribers, and maintain a group home page where subscribers can communicate amongst themselves. A block functions as a facilitator of node types such as blog, story, or page that are posted and it can also provide summary information about the group. Another significant feature of this module is that groups may be selective or not. You may send out exclusive invitations to specific individuals or choose to require approval in order to become a member and many more preferences to configure your own groups.

=//__Organic Groups Setup__//=

Basic steps of installation of Organic Groups which will create a group content type and the article content type to be a group post.

Step 1: Install and Enable
Modules required: OG 7.x-1.1 Entity API 7.x-1.x-dev

After the modules are installed,
 * //Enable//** Organic Groups, Organic Groups UI and Entity API from the module tab.





//How to create a content type that will be used for groups?//

 * 1) Go to Structure > Content types > Add Content type
 * 2) Set Name as 'Group'
 * 3) Save content type

//How to configure the article content type?//

 * 1) Go to Structure > Content types
 * 2) Edit the content type: "Article"
 * 3) Scroll down to the Group tab and select "Group content type"
 * 4) Save content type



Step 4: Create a Group
//How to create the first group?//


 * 1) Go to Add Content > Group
 * 2) Title: Group #1
 * 3) Group type: Group type
 * 4) Save



"You are the group manager",

"request group membership" link for users who are not a member of the group

Finishing the steps above will create membership feature that requires approval by the group manager, and a public group, with public content.

Step 5: Post an article to the group

 * 1) Go to Add Content > Article
 * 2) Title: Article #1
 * 3) Groups audience: Group #1
 * 4) Save
 * What appears on the web page after this implementation:**



=//__Organic Groups Views__//= Modules required: CTools Views
 * Step 1: Install and Enabl **** e **

//** Enable **// Chaos tools, Views Content Panes, Views and Views UI

Step 2: Display recent members

 * 1) Go to Structure > Views
 * 2) Edit view: OG members
 * 3) Change title to "Recent members of 1%"
 * 4) Use pager: Paged output, mini pager
 * 5) Items to display: 10 (can be as many as you want)
 * 6) Save the view




 * Step 3: To List the Groups on Main Menu**

== =
 * 1) Go to Structure > Views
 * 2) Edit the view "OG List"
 * 3) Change the Menu Path to Normal menu entry
 * 4) Change title to "Group list"
 * 5) Change Menu to "All Group"
 * 6) Click Save

= = = = = =//__Organic Groups Layout__//= // How to configure Panels for your group layout //

Modules required: Panels 7.x-3.x-dev
 * Step 1: Install and Enable **

After the modules are installed,
 * // Enable //** Page Manager, Panels



// How to override the node template for groups? //
 * Step 2: Override the node template for groups **


 * 1) Go to Structure > Pages
 * 2) Enable “Node Template”
 * 3) edit “Node Template”
 * 4) Add a new variant
 * 5) Title: Group Layout – Select both “Selection rules and Contexts”
 * 6) Click “Create variant”
 * 7) Select “OG: Node is a group”
 * 8) Continue, under Relationships, select “Group from node”
 * 9) Add relationship
 * 10) Continue



// How do you want your layout to appear? //
 * Step 3: Select your layout **


 * 1) Select your builder of your preference
 * 2) Continue
 * 3) Check the “Disable Drupal block/regions” (if you don’t the sidebars)
 * 4) Create variant



// How to add all of the content before laying out the panel? //
 * Step 4: Add all of the content **


 * 1) Click on the icon that is appeared in the screen shot
 * 2) Choose “Add content”
 * 3) Node – Field: Body (body), View Panes – View: OG nodes, OG members, etc.…
 * 4) Continue



// How to create a row in the panel? //
 * Step 5: Layout the panel **


 * 1) Click Row > add region to right
 * 2) Region title: Right region
 * 3) Save

// How to create a column in the panel? //


 * 1) // Click Column > add Row to top //
 * 2) // Click that Row > add region //
 * 3) // Region title: Top region //
 * 4) // Save //

Now we are enabled to move all of the contents to the top region, the right region, or the center.

= = =//__Create a Public Group and a Private Group Groups__//= //How to create a public group? How to create a private group?//

** Step 1: Install and Enable **
No additional module installations required


 * // Enable //** Organic groups access control and **Rebuild Permission**





** Step 2: Create a public group **

 * 1) Go to configuration > click "Organic groups field settings"
 * 2) Choose "Group" for Bundles and "Group Visibility"
 * 3) Add field
 * 4) Check "Public" to make it accessible to all users
 * 5) Save

Step 3: Create a private group

 * 1) Repeat the steps above until #3
 * 2) Check "Private" to make it accessible only to group members"
 * 3) Save