Were did OG list disappeared from views?

Files: 
CommentFileSizeAuthor
20121123_202516.jpg2.51 MBavrilev

Comments

Status:Active» Postponed (maintainer needs more info)

What is OG-list?

OG-list is one of the views under Structure->Views....
But it's not there anymore (for some odd reason...)

Sorry, I don't know which view the OG-list is. Maybe it was in another version or provided by another module.

btw, dude, did you actually take a picture of your screen? :)

Yes I did take that picture. The purpose of that was to show you guys, the absence of that particular view, that could be dropped out for some reason in this version of OG (the last one of course).
So??? Anyone????

How about you check if it was in a previous version? I don't remember ever having "OG list" in 7.x

Version:7.x-2.0-beta3» 7.x-2.0-rc1

I was following the Modules Unravelled video at http://modulesunraveled.com/organic-groups/part-2-organic-groups-views , and at about 2:30, he configures OG List.

I have the same problem as reported previously ... except that was for Organic Groups 7.x.2.0-beta3, and now this field doesn't exist in Organic Groups 7.x.2.0-rc1 .

Also in the book "Definitive Guide to Drupal 7" on page 116 there is reference to a view called list of groups. I guess I need to head on over to the issue queue.

Status:Postponed (maintainer needs more info)» Active

I understand. Well, patches are welcome..

Allow me to elaborate for the original poster:

In the copy 7.x-1.4_3-dev copy of OG that one site I am working on is running, /og/includes/og.views_default.inc begins by defining a View titled "og_list" that is used to show the list of all Groups.

This view is no longer defined in the 7.x-2.x branch.

In addition the three Views Relationship handlers for "OG group" are no longer found by Views (that code may also be missing in 7.x-2.x), but the ones for "OG membership" ARE still available. Specifically, relationship handlers are missing for "OG group: Node from OG group", "OG group: OG group from Node" and "OG group: OG membership from OG group".

The missing View utilizes the missing Relationship handler(s), which would also be required to try creating the missing View from scratch.

Unless there is some esoteric way that involves use of Entities to display a list of Groups, something got lost along the way, amigo.

HTH.

-St.Ego

New to Drupal and just came across this issue myself. Thanks St.Ego for the good explanation.

Is there anyway to be able to create these views with this missing? I need to be able to list all groups (whether or not you're a member) and list all groups you are a member of.

I've the same problem :(
The view OG list don't appears, and the relations around Group don't.

I've reinstalled the OG 7.x-2.0-rc3

Some solution? Some idea?

Thanks in advance.

Version:7.x-2.0-rc1» 7.x-2.0-rc3

I looked around some more and it seems the pre-existing view "OG User groups" provides a list of groups of which a person is a member. And I believe that is what OG-list was doing?

Edit: sorry, I think OG-list was providing the overall list of groups which is what I need and am having problems creating

Title:OG-listOG-list missing

Install the Organic groups views module (og_views) and you can easily produce a view to replicate the OG-list.

There is module http://drupal.org/project/og_extras that provides the view called groups, which can be treated as a substitute for og-list. I hope it helped.

Avrilev Hello, I og_extras problem solving, this module provides a view called OG Groups Extras , clone the view and set the title field to solve a problem. I hope you serve something.

I ended up creating a View Content Pane that filters on Content (mine is Published, Type = Group, Published or admin) and then I created a Panel that displays this view. Once I understood views and panels better after using them for more than a couple hours, it wasn't difficult to create this in the end. Let me know if anyone needs more detail.

Version:7.x-2.0-rc3» 7.x-2.2

Like many, I have found there is no support documentation for OG 7.x-2.x and found myself following tutorials for an older version of OG. I too was looking for a list of all groups and followed #19.

The fields I chose to display as a table are:

Content: Title (Title)
Content: Group visibility (Group visibility)
Content: Post date (Post date)

Filter criteria:

Content: Published (Yes)
Content: Type (= Group)

Hope this helps someone get off the ground by sharing an export of my own view for creating their own list of groups.

$view = new view();
$view->name = 'group_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Group list';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Group list';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'table';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Group visibility */
$handler->display->display_options['fields']['group_access']['id'] = 'group_access';
$handler->display->display_options['fields']['group_access']['table'] = 'field_data_group_access';
$handler->display->display_options['fields']['group_access']['field'] = 'group_access';
/* Field: Content: Post date */
$handler->display->display_options['fields']['created']['id'] = 'created';
$handler->display->display_options['fields']['created']['table'] = 'node';
$handler->display->display_options['fields']['created']['field'] = 'created';
$handler->display->display_options['fields']['created']['date_format'] = 'long';
$handler->display->display_options['fields']['created']['timezone'] = 'Europe/London';
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'group' => 'group',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'groups';

@JeniferTucker , If you'll roll a patch with that View the community will be happy :)

Hello everyone,
I'm working on an upgrade from Drupal 6 to 7 and facing the same problem. I've got two local virtual servers that contain two different drupal 7 versions - one with og 7.x-2.2 and one with 7.x-1.5. In the older version it works and the export function presents me the following:
$view = new view();
$view->name = 'og_list';
$view->description = 'Show active groups that are nodes';
$view->tag = 'og';
$view->base_table = 'node';
$view->human_name = 'OG list';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Groups list';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'mehr';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Anwenden';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Zurücksetzen';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Sortieren nach';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Beiträge pro Seite';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Alles -';
$handler->display->display_options['pager']['options']['tags']['first'] = '« erste Seite';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ vorherige Seite';
$handler->display->display_options['pager']['options']['tags']['next'] = 'nächste Seite ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'letzte Seite »';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'title' => 'title',
'created' => 'created',
);
$handler->display->display_options['style_options']['default'] = 'title';
$handler->display->display_options['style_options']['info'] = array(
'title' => array(
'sortable' => 1,
'align' => '',
'separator' => '',
),
'created' => array(
'sortable' => 0,
'align' => '',
'separator' => '',
),
);
/* Beziehung: OG group: OG group from Beitrag */
$handler->display->display_options['relationships']['og_rel']['id'] = 'og_rel';
$handler->display->display_options['relationships']['og_rel']['table'] = 'node';
$handler->display->display_options['relationships']['og_rel']['field'] = 'og_rel';
/* Feld: Inhalt: Titel */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
/* Feld: OG group: Created */
$handler->display->display_options['fields']['created']['id'] = 'created';
$handler->display->display_options['fields']['created']['table'] = 'og';
$handler->display->display_options['fields']['created']['field'] = 'created';
$handler->display->display_options['fields']['created']['relationship'] = 'og_rel';
$handler->display->display_options['fields']['created']['label'] = 'Since';
$handler->display->display_options['fields']['created']['date_format'] = 'time ago';
/* Filter criterion: OG group: State */
$handler->display->display_options['filters']['state']['id'] = 'state';
$handler->display->display_options['filters']['state']['table'] = 'og';
$handler->display->display_options['filters']['state']['field'] = 'state';
$handler->display->display_options['filters']['state']['relationship'] = 'og_rel';
$handler->display->display_options['filters']['state']['value'] = array(
1 => '1',
);
$handler->display->display_options['filters']['state']['expose']['label'] = 'Group: Group\'s state';
$handler->display->display_options['filters']['state']['expose']['operator'] = 'state_op';

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['path'] = 'group-list';

/* Display: Feed */
$handler = $view->new_display('feed', 'Feed', 'feed_1');
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['style_plugin'] = 'rss';
$handler->display->display_options['row_plugin'] = 'node_rss';
$handler->display->display_options['path'] = 'group-list/feed';
$handler->display->display_options['displays'] = array(
'page_1' => 'page_1',
'default' => 0,
);
$translatables['og_list'] = array(
t('Defaults'),
t('Groups list'),
t('mehr'),
t('Anwenden'),
t('Zurücksetzen'),
t('Sortieren nach'),
t('Asc'),
t('Desc'),
t('Beiträge pro Seite'),
t('- Alles -'),
t('Offset'),
t('« erste Seite'),
t('‹ vorherige Seite'),
t('nächste Seite ›'),
t('letzte Seite »'),
t('node being the OG group'),
t('Titel'),
t('Since'),
t('Group: Group\'s state'),
t('Page'),
t('Feed'),
);

If I try updating to the newer version these errors occur:

Feld handler og.created is not available.
Filter criterion handler og.state is not available.
Beziehung handler node.og_rel is not available.
Feld handler og.created is not available.
Filter criterion handler og.state is not available.
Beziehung handler node.og_rel is not available.
Feld handler og.created is not available.
Filter criterion handler og.state is not available.
Beziehung handler node.og_rel is not available.
Unable to import view.

Mention that there are german translations.
Maybe this post will help you creating a patch

Sincerely
Marius Andresen

Hi everybody,

I created new view to replace the missing Group List view considering the group access control.

before importing this view you need to:
- install Organic groups module
- intsall Organic groups access control
- create a Group content type
- add add an visibility field to your og bundle, for more info see how to here
- add the visibility field to your Group content type
- import the following view

$view = new view();
$view->name = 'og_list_public_groups';
$view->description = 'A listing of all public node groups.';
$view->tag = 'OG Extras';
$view->base_table = 'node';
$view->human_name = 'OG Extras Groups';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Groups';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'title' => 'title',
  'body' => 'body',
  'name' => 'name',
  'created' => 'created',
  'group_group' => 'group_group',
);
$handler->display->display_options['style_options']['default'] = 'title';
$handler->display->display_options['style_options']['info'] = array(
  'title' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'body' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'name' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'created' => array(
    'sortable' => 1,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
  'group_group' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => 'views-align-left',
    'separator' => '',
    'empty_column' => 0,
  ),
);
/* Relationship: OG membership: OG membership from Node */
$handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel';
$handler->display->display_options['relationships']['og_membership_rel']['table'] = 'node';
$handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel';
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = 'Team';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = 'Description';
$handler->display->display_options['fields']['body']['alter']['max_length'] = '300';
$handler->display->display_options['fields']['body']['alter']['trim'] = TRUE;
/* Field: User: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'users';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['relationship'] = 'uid';
$handler->display->display_options['fields']['name']['label'] = 'Manager';
/* Field: Content: Post date */
$handler->display->display_options['fields']['created']['id'] = 'created';
$handler->display->display_options['fields']['created']['table'] = 'node';
$handler->display->display_options['fields']['created']['field'] = 'created';
$handler->display->display_options['fields']['created']['label'] = 'Created';
$handler->display->display_options['fields']['created']['date_format'] = 'time ago';
/* Field: Content: Group visibility */
$handler->display->display_options['fields']['group_access']['id'] = 'group_access';
$handler->display->display_options['fields']['group_access']['table'] = 'field_data_group_access';
$handler->display->display_options['fields']['group_access']['field'] = 'group_access';
$handler->display->display_options['fields']['group_access']['exclude'] = TRUE;
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'group' => 'group',
);
/* Filter criterion: Content: Group visibility (group_access) */
$handler->display->display_options['filters']['group_access_value']['id'] = 'group_access_value';
$handler->display->display_options['filters']['group_access_value']['table'] = 'field_data_group_access';
$handler->display->display_options['filters']['group_access_value']['field'] = 'group_access_value';
$handler->display->display_options['filters']['group_access_value']['value'] = array(
  0 => '0',
);
/* Filter criterion: Content: Group visibility (group_access) */
$handler->display->display_options['filters']['group_access_value_1']['id'] = 'group_access_value_1';
$handler->display->display_options['filters']['group_access_value_1']['table'] = 'field_data_group_access';
$handler->display->display_options['filters']['group_access_value_1']['field'] = 'group_access_value';
$handler->display->display_options['filters']['group_access_value_1']['operator'] = 'not';
$handler->display->display_options['filters']['group_access_value_1']['value'] = array(
  1 => '1',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'groups';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Groups';
$handler->display->display_options['menu']['weight'] = '10';
$handler->display->display_options['menu']['name'] = 'main-menu';
$handler->display->display_options['menu']['context'] = 0;

hope it will help you

Hi

Great collection of samples!

I want my group list to show private groups as well as public groups. In d6, there was a checkbox for "List in Groups directory" (although it indicated that if there group were private, the option would be disabled).

Do any of the above views allow private groups to show in the list (and offer a Subscribe link)?

The visibility of a group in the Groups List seems to be tied rather tightly to the default visibility of the Group's content. Would be nice if the two could be managed independently

Thanks
-- hanksterr7

According to the book "The Definitive Guide to Drupal 7" (Chapter 5: Creating Community Web Sites with Organic Groups), the description of the OG List view was: "Show active groups that are nodes", that is a list of all groups.

The OG Extras module, mentioned in comments #17 and #18, provides a replacement (in admin/structure/views), the OG Extras Groups view ("A listing of all node groups") with the default path /groups.

From the og_extras project page:

"Extra functions, blocks, and views for Organic Groups 7.2. In particular, this module adds views and blocks needed by sites that are not using Panels, although it also may be useful to sites that do use Panels."

Hi @juan_g,
I assume your post was a follow-on to mine.
From what I can tell, the OG Extras views show og content nodes. I'm looking for a view that shows a list of groups (i.e. og nodes), where the groups in the view are a mix of both public and private groups. I don't think og extras helps with that

Ah, sorry, it was a reply to the general issue, one of the alternatives to OG List. It's a little similar to https://groups.drupal.org/groups but more basic, naturally.

@hanksterr7: I've tried a little bit, and in the list of groups from og_extras (OG Extras Groups view at e.g. example.com/groups after enabling the module) private groups (groups with the setting "Group visibility: Private - accessible only to group members") are listed only for members, as usual.

A possible solution for private groups to have a public list and private content is:
#2068425: public listing of private groups