Giới thiệu module Organic Groups trong Drupal 6

Giới thiệu module Organic Groups trong Drupal 6

Organic Groups (OG) is the social networking solution for Drupal. It forms the basis of http://groups.drupal.org and also powers Drupal Commons, the widely used social networking distribution.

OG allows users to create and manage their own groups. Other members can then join those groups and share content either privately or publicly.

Two notes of caution before we start:

  • OG is a powerful solution but not for the faint of heart. To use it, you will need a good understanding of Drupal, plus Views and Panels as well.
  • There are some major differences between the Drupal 6 version and the new Drupal version.

Here's an introduction to OG for Drupal 6. Click here for our tutorial on Organic Groups for Drupal 7.

Step 1: Install the Modules

You'll need to download and install this module of course:

OG will work without them but to really make use of OG you'll certainly need these modules too:

When you visit the modules page to enable modules, make sure to enable all of the Organic group submodules.

tutuploadsmedia_1335558006694.png

After enabling the modules, you'll see a message saying "The content access permissions need to be rebuilt." Click "this page" and follow through the steps until the process is finished.

tutuploadsmedia_1335558224890.png

Step 2: Creating Groups

Here's the key thing to understand about Organic Groups: they are entirely based on Drupal's nodes.

The groups themselves are nodes and the content shared inside the groups are nodes. When you set up a new content type, you can decide whether nodes in that content type become groups or content within groups.

  • Go to Administer > Content management > Add content type.
  • Create a content type called Groups.

tutuploadsmedia_1335558513160.png

  • Check the box which says: Group node. This means that these nodes will form the basis for the groups on our site.

tutuploadsmedia_1335558786149.png

  • Go back to Content management > Add content type.
  • Set up a content type called Group News.
  • This time we'll check the box which says: Standard group post.

tutuploadsmedia_1335558892518.png

  • Go to Create content > Groups and create a new group.
  • By default all groups are Open for any registered member to join, but as you can see, private groups are also possible.

tutuploadsmedia_1335559035500.png

  • Go to Create content > Group News and create a new announcement for your group.
  • Make sure to check your group under the Audience heading.

tutuploadsmedia_1335559121815.png

  • When you publish your content it will look just like a normal node, only with a link to the group at the bottom:
tutuploadsmedia_1335559139424.png
  • When you click the group name, even the group itself will look like a normal node.

tutuploadsmedia_1335559157296.png

  • At this point you can actually use Organic Groups. It won't look great but it will work.
  • You can go Administer > Organic groups and configure how OG works on your site.

tutuploadsmedia_1335559187776.png

However, to really use OG, you'll need to make use of Views and Panels.

Step 3: Organic Groups and Views

  • Go to Site building > Views. You'll see large number of Views already created for you. These will do things such as show a list of your groups:

tutuploadsmedia_1335559812460.png

  • And a list of posts in the groups you are a member of:

tutuploadsmedia_1335559887784.png

Because OG is integrated with Views, you use Views to setup a lot of the key landing pages for your social network.

Step 4: Organic Groups and Panels

If you want to control the layout of your page, you will need Panel.

  • Go to Administer > Site building > Panels.
  • Click Note template.

tutuploadsmedia_1335560151087.png

  • Node type: Groups.
  • Layout: Choose the layout you want for your Groups pages.
tutuploadsmedia_1335560179712.png
  • Skip the next page.
  • You'll be on the main Panels design page. Click the cog next to each region of the content to place the items you'd like on your main groups page.

tutuploadsmedia_1335560358347.png

  • Click Finish.
  • Make sure to click both "Enable" and "Update and Save" to finish and make the Panel live on your site.

What's Next?

From this point onwards, there is still a lot of work to do in order to create a social site, but hopefully the principles are now clear. The process of getting OG setup is Content > Views > Panels.

Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Khanh Hoang

Khanh Hoang - Kenn

Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 

Intel tung chip cao cấp Core i7 “Haswell-E” vào Q3/2014

Với Haswell-E, Intel có thể sẽ tung chip 6 nhân dòng giá rẻ hứa hẹn sẽ chỉ có giá khoảng 400 USD, còn chip 8 nhân có giá khoảng 600 USD. Bản chip 8 nhân Extreme Edition sẽ có giá ở mức 1000 USD.

Samsung được cấp giấy phép thiết kế VXL ARM 64 bit

Samsung được cấp giấy phép thiết kế VXL ARM 64 bit

Việc Samsung được cấp giấy phép thiết kế VXL ARM 64 bit cho thấy hãng sản xuất chip này có thể mở rộng phạm vi từ smartphone và MTB để nhảy vào thị trường máy chủ.

18,4 triệu người ở Mỹ tìm được việc làm trên Facebook năm 2011

18,4 triệu người ở Mỹ tìm được việc làm trên Facebook năm 2011

Mặc dù hầu hết mọi người đều cho rằng LinkedIn mới là mạng xã hội có chức năng tìm kiếm việc làm, nhưng trên thực tế trong năm 2011 Facebook...

Công ty diệt chuột T&C

 

Diet con trung