If I set my style to unformatted, grouping essentially works, but the grouping field appears above each node enclosed by <h3> tags. For example:

 <h3>Article: <a href="/node/329" title="&amp;lt;a href=&amp;quot;/node/99&amp;quot;&amp;gt;Manual on Uniform Traffic Control Devices&amp;lt;/a&amp;gt;" alt="&amp;lt;a href=&amp;quot;/node/99&amp;quot;&amp;gt;Manual on Uniform Traffic Control Devices&amp;lt;/a&amp;gt;"><a href="/node/99">Manual on Uniform Traffic Control Devices</a></a></h3>
  <div class="views-row views-row-1 views-row-odd views-row-first views-row-last">
      
  <div class="views-field-title">

          <label class="views-label-title">
        Summary:
      </label>
                <span class="field-content"><a href="/node/329" title="&amp;amp;quot;The purpose of traffic control devices, as well a..." alt="&amp;amp;quot;The purpose of traffic control devices, as well a...">&quot;The purpose of traffic control devices, as well a...</a></span>
  </div>
  
  <div class="views-field-field-article-nid">
          <label class="views-label-field-article-nid">
        Article:
      </label>

                <span class="field-content"><a href="/node/329" title="&amp;lt;a href=&amp;quot;/node/99&amp;quot;&amp;gt;Manual on Uniform Traffic Control Devices&amp;lt;/a&amp;gt;" alt="&amp;lt;a href=&amp;quot;/node/99&amp;quot;&amp;gt;Manual on Uniform Traffic Control Devices&amp;lt;/a&amp;gt;"><a href="/node/99">Manual on Uniform Traffic Control Devices</a></a></span>
  </div>
  </div>

SQL query:

SELECT node.nid AS nid,
   node.title AS node_title,
   node_data_field_article.field_article_nid AS node_data_field_article_field_article_nid,
   node.type AS node_type,
   node.vid AS node_vid
 FROM speed_node node 
 INNER JOIN speed_term_node term_node ON node.vid = term_node.vid
 LEFT JOIN speed_content_type_quote node_data_field_article ON node.vid = node_data_field_article.vid
 WHERE (node.type in ('quote')) AND (node.status <> 0) AND (term_node.tid = 30)

Here's the export:

$view = new view;
$view->name = 'quotes';
$view->description = 'Quotes by Category';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$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('fields', array(
  'title' => array(
    'label' => 'Summary',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'field_article_nid' => array(
    'label' => 'Article',
    'link_to_node' => 1,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_article_nid',
    'table' => 'node_data_field_article',
    'field' => 'field_article_nid',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'tid' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'break_phrase' => 0,
    'add_table' => 0,
    'require_value' => 0,
    'reduce_duplicates' => 0,
    'set_breadcrumb' => 0,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'poll' => 0,
      'forum' => 0,
      'article' => 0,
      'book' => 0,
      'move_over_law' => 0,
      'page' => 0,
      'publication' => 0,
      'quote' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '2' => 0,
      '1' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'quote' => 'quote',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', '1');
$handler->override_option('style_options', array(
  'grouping' => 'field_article_nid',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'quotes');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

Comments

Aren Cambre’s picture

Status: Active » Closed (duplicate)

Whoops, duplicated an older issue I created: #361298: Grouping field problem when "link to node" enabled.

robynover’s picture

Re-opening:
I continue to have this issue, and it does not appear to be related to "link to node". I would like to group my nodes by node type, for example. I would like a list like this (where uppercase is an h3 or whatever header):

PAGE
-my page
-my other page

STORY
-my story
-another story
-yet another title of a story

XYZ CUSTOM CONTENT TYPE
-my node of this type
-my other node
-etc

Instead, I get this:

PAGE
-my page
PAGE
-my other page
STORY
-my story
STORY
-another story
STORY
-yet another title of a story

...etc.

Can't for the life of me figure out how to change this. Google hasn't even helped. What am I missing?

robynover’s picture

Update/Nevermind: Seems to be a conflict with theme developer. Crazy.

Found that issue documented here: http://drupal.org/node/483080