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
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. :(