I would like to know if it is possible to take all forums that are "owned" by a group, stick them into a block and show it on the group home page? I do have Views so I know I can always create a table view of 'forum topic' nodes, but I would like to know if there is a way to maintain the container view(s).

The reason why I am asking is because sites that have a large amount of public groups (and multiple forums per group) will have a long /forum page. I am looking to only show the forums for a particular group so I do not over-whelm my users with one large forum page.

Thanks.

Comments

Anonymous’s picture

Title: Insert OG forums into block to show on Group Home Page » [WORK PRIORITY 2] Insert OG forums into block to show on Group Home Page
Anonymous’s picture

Assigned: Unassigned »
Anonymous’s picture

Assigned: » Unassigned
Anonymous’s picture

Version: 6.x-1.3 » 6.x-2.x-dev
Assigned: Unassigned »

Working on exposing the og_term table in views and creating a view to show group specific forums in a block / page.

Anonymous’s picture

I have started working on exposing the the og_terms tables to views. However as this is the first time that i have tried to do this i'm currently still trying to get this information availble inside an "add view" page :-(


/**
* Implementation of hook_views_handlers() 
*/
function og_forum_views_handlers() {
 return array(
   'info' => array(
     'path' => drupal_get_path('module', 'og_forum') .'/includes',
     ),
   ),
 );
}

/**
 * Implementation of hook_views_data()
 */
function og_forum_views_data() {
// Basic table information.

  $data['og_term']['table']['group']  = t('OG Forum');


  $data['og_term']['table']['join']['term_data'] = array(
    'left_field' => 'tid',
    'field' => 'tid',
  );

  $data['og_term']['public'] = array(
    'title' => t('Public'),
    'help' => t('Group forum is public'),
    'field' => array(
    'handler' => 'views_handler_field',
	'click sortable' => TRUE,
    ),
  );
  return $data;
}

Any help would be welcomed :-)

After exposing the data in og_term to views i'm working towards building OG Forum specific views that allow rendering of a:

forum pages / blocks that are specific to the current group context
forum page / block that shows public group forums in a site wide context

Best Paul

davidteall’s picture

I too would like to be able to do this.

The 'View' required is already there, of course, but in the guise of a Forum Container with the url /forum/xxx. All I want to be able to do is to make that Forum Container (or, in the case of some Groups which only have a single Forum - the Forum itself) the Home Page of the Group itself, but I can't find a way to do it.

Anonymous’s picture

Title: [WORK PRIORITY 2] Insert OG forums into block to show on Group Home Page » Insert OG forums into block to show on Group Home Page
Assigned: » Unassigned
budda’s picture