Grouped By Taxonomy Term, List View

detot - February 13, 2008 - 10:59
Project:Views 'Group-By' Pack
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

chanon - March 9, 2008 - 16:13

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

#2

rapsli - April 8, 2008 - 18:57

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

#3

iantresman - May 5, 2008 - 00:02

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

#4

drew reece - May 5, 2008 - 18:59

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

http://drupal.org/node/253730

Drew

#5

jamov - July 28, 2008 - 11:19

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

-jamov

#6

JordiTR - November 6, 2008 - 17:55

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 :-)

 
 

Drupal is a registered trademark of Dries Buytaert.