Hello-

I am having trouble using views within an organic group. I've followed the instructions as explained on the views configuration page - I am using the url node/$group/content, set the menu options correctly and have the group $nid = the current group as my first argument. This all works fine and puts the tab on my group home page like I want it. However, if I click on any link on the page (such as, in this case, an exposed taxonomy filter), it does not handle the argument correctly. Instead of node/61/content&op0=AND&filter0=BW, I get the escaped string: node%2F%24group%2Fcontent%2F63&op0=AND&filter0=BW. The token for group is getting resolved as $group instead of its value as well.

This sounds very much like the issue KarenS solved with a patch here (and my breadcrumbing is working similarly). I applied the patch but it didn't seem to make any changes, even after I refreshed my view cache.

Here is the export of the view I'm using, just for review:

  $view = new stdClass();
  $view->name = 'og_content';
  $view->description = '';
  $view->access = array (
  0 => '2',
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Content';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'table';
  $view->url = 'node/$group/content';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '10';
  $view->menu = TRUE;
  $view->menu_title = '';
  $view->menu_tab = TRUE;
  $view->menu_tab_weight = '0';
  $view->menu_tab_default = FALSE;
  $view->menu_tab_default_parent = NULL;
  $view->menu_tab_default_parent_type = 'tab';
  $view->menu_parent_tab_weight = '0';
  $view->menu_parent_title = '';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'DESC',
      'options' => 'normal',
    ),
  );
  $view->argument = array (
    array (
      'type' => 'gid',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'users',
      'field' => 'uid',
      'label' => 'Author',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'label' => 'Type',
      'sortable' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Title',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'node',
      'field' => 'changed',
      'label' => 'Updated',
      'handler' => 'views_handler_field_date_small',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'og_ancestry',
      'field' => 'picg',
      'operator' => '=',
      'options' => '',
      'value' => '***CURRENT_GID***',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'NOR',
      'options' => '',
      'value' => array (
  0 => 'bio',
  1 => 'event',
  2 => 'image',
  3 => 'group',
  4 => 'out',
  5 => 'page',
  6 => 'prototype',
  7 => 'proto_over',
  8 => 'story',
  9 => 'training',
),
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'operator' => 'AND',
      'options' => '',
      'value' => array (
),
    ),
  );
  $view->exposed_filter = array (
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '0',
      'single' => '0',
    ),
  );
  $view->requires = array(node, users, og_ancestry, term_node_2);
  $views[$view->name] = $view;

Thanks for this great module and please let me know if you need any other info...

PS. Henns20 posted a similar issue in the Organics Group module but, based on KarenS's thread, I think it should probably be here....

j_orbin

Comments

ajayg’s picture

If you are referring to this patch (http://drupal.org/node/183191) from karens, then I am noticing same.

It did NOT work for me.

ajayg’s picture

I used "node/$arg/custom" instead of "node/$group/custom" and it worked for me. There was no need for any special argument handling code.

ajayg’s picture

Status: Active » Closed (duplicate)