DrupalBin
Submit Code
About
Recent Posts
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
1 hour 51 min
ago
Code
2 hours 46 min
ago
Code
6 hours 45 min
ago
oopsie in modules/taxonomy/taxonomy.test
8 hours 43 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for Group By problem
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
I have a problem when trying to group by a field in my view. My page has an extra cck field ("project_title") and I would like to list under that all the pages for that project - ie: This is the current page: -Carnival Of Souls COS Gallery needs Site Hosts to adjust properties Last Updated: 4th Feb, 2008 -Carnival Of Souls COS drupal is now online Last Updated: 4th Feb, 2008 -Carnival Of Souls COS site has Links finished and added to page Last Updated: 4th Feb, 2008 -GIFT GIFT Ltd site waiting for PHP update Last Updated: 4th Feb, 2008 -PTS Update to the Header on the PTS site Last Updated: 4th Feb, 2008 I would like to show: -Carnival Of Souls -COS Gallery needs Site Hosts to adjust properties Last Updated: 4th Feb, 2008 -COS drupal is now online Last Updated: 4th Feb, 2008 -COS site has Links finished and added to page Last Updated: 4th Feb, 2008 -GIFT -GIFT Ltd site waiting for PHP update Last Updated: 4th Feb, 2008 -PTS -Update to the Header on the PTS site Last Updated: 4th Feb, 2008 i am using "list view" with a single field (body/teaser) to achieve what I currently have. I did try installing the Group-By module, but this didn't do anything. I also already tried having the project title as a field, and "group multiple values". I have used content template to list the fields I want: <?php if (!$project_title==check_plain($node->field_project_title[0]['view'])) { $project_title=check_plain($node->field_project_title[0]['view']); print "<h3>".$project_title."</h3>"; }?> <a href="q=node/<?php print $node->vid ?>" title="<?php print check_plain($node->title) ?>"><?php print check_plain($node->title) ?></a> <br/> <em class="field field-type-userreference field-field-view-by-user">Last Updated: <?php if ($node->last_comment_timestamp>$node->changed) { print date("jS M, Y",$node->last_comment_timestamp); } else { print date("jS M, Y",$node->changed); } ?></em> I was hoping that the $project_title field would store the project title between list items - but it's not. :(
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.