|
Grouping nodes under a single date header: msg#00052php.drupal.support
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> |
|---|---|---|
| Previous by Date: | Re: Two problems: 00052, Tim Altman |
|---|---|
| Next by Date: | Re: Two problems: 00052, Abalieno |
| Previous by Thread: | image module and permissionsi: 00052, Sam Hart |
| Next by Thread: | Re: Grouping nodes under a single date header: 00052, Abalieno |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |