Project:Views 'Group-By' Pack
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Like the title says, why isn't this option available?

Comments

#1

Yes, I second this request. Would be a very useful addition.

#2

Would love this feature... cuz without it I can't use it :(

#3

Yes please! I just added a forum post asking about this very point.

#4

I added a request for this before being referred here. I'm willing to help if needed.

http://drupal.org/node/253730

Drew

#5

I'd like to see this feature in this module too.

-jamov

#6

Hi you all.

One posibility is through using templates functions replacing module theme functions.

The function theme_taxonomygroup_term() on file taxonomygroup.inc is the resposible of painting on your page the teasers once the taxonomygroup.module has grouped the results. So you can grab that function and copy it on your theme template.php file and copy that function changing the name of the function to "yourthemename_taxonomygroup_term()". Then inside reorganize the information as you want. On the code below I've replaced the line 66, $output = node_view($node, $teaser, false, true) with only the title of the node inside a link, in a list.

<?php
function yourthemename_taxonomygroup_term($termlist, $term, $teaser=false) {
 
$output = "<div id=\"taxonomygroup-{$term}-header\">{$term}</div>";
 
$output .= "<ul class=\"taxonomygroup-{$term}\">";
  foreach (
$termlist as $node) {
   
$output .= '<li>'.l($node->title, 'node/'. $node->nid).'</li>';
  }
 
$output .= "</ul>";
  return
$output;
}
?>

Don't forget to change the name of that theme function to the name of you theme folder.

I consider that the full nodes views is almost useless on that case, even the teasers list. On my case that makes the work :-)