logo       

Grouping nodes under a single date header: msg#00052

php.drupal.support

Subject: Grouping nodes under a single date header

I worked a bit on it following the example and I added this to node.tpl.php
using phptemplate as the theme

<div class="date">
<?php
global $current_date;
if ($date != $current_date) {
print $date;
$current_date = $date;
}
?>
</div>

Now I obviously have two problems. The first is that the div class needs to
be *inside* the if block, just before the print command. How could I do
this? I just don't know the correct syntax.

The second problem is that this system uses the complete $date, so it check
hours too...

Abalieno

--
[ Drupal support list | http://list.drupal.org/ ]



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise