The option to add a member title field (along with sort and filter options) appears to be missing in Views 2.1. I haven't tried it with a previous version of Views.

Looks like a very useful little module though - thanks.

Comments

mradcliffe’s picture

Assigned: Unassigned » mradcliffe

Sorry for not responding, I did not receive an e-mail from this issue.

mradcliffe’s picture

Status: Active » Postponed (maintainer needs more info)

I just installed Views 6.x.2.1 and tried one. Here's what I tried real quick:

$view = new view;
$view->name = 'titlesblah';
$view->description = 'titles';
$view->tag = 'blah';
$view->view_php = '';
$view->base_table = 'users';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
  'nid' => array(
    'label' => 'Group node (member)',
    'required' => 0,
    'id' => 'nid',
    'table' => 'og_uid',
    'field' => 'nid',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => 'Organic groups OG: Member Title',
    'exclude' => 0,
    'id' => 'title',
    'table' => 'og_uid_titles',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'name' => array(
    'label' => 'Name',
    'link_to_user' => 1,
    'exclude' => 0,
    'id' => 'name',
    'table' => 'users',
    'field' => 'name',
    'relationship' => 'none',
  ),
  'description' => array(
    'label' => 'Group: Description',
    'exclude' => 0,
    'id' => 'description',
    'table' => 'og',
    'field' => 'description',
    'relationship' => 'nid',
  ),
  'title_1' => array(
    'label' => 'Title',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title_1',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'nid',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'name' => 'name',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'name' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
mradcliffe’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)