|
Re: Re: Two problems: msg#00035php.drupal.support
I thought a bit about it and this is the algorithm that should work: $date -> $temp-date If $temp-date != $current-date then - print $date - $date -> $current-date Now I don't know PHP so I need help to translate that into working code. The other problem is to define how to initialize $current-date before it's used for the first time. Or perhaps there's no need for $temp-date and I only need $current-date to be set to the value of the "last" node. Then I don't also know how to compare those values considering just the day number and the month and not the hour. I need help on this precise part. > Well, it does not what I need: > <h2 class="date"><?php print $date ?></h2> > > It just shows the date header, that's simple to do. The point is to group > the nodes under a date header, without repeating it every time. > As an example. This is my site with MovableType: http://www.cesspit.net/ > This is the attempt by using Drupal: http://www.cesspit.net/ > Or: http://www.cesspit.net/cesspit/archives/2004-05/index.html > > If you look the archive you see that more than one entry is grouped under > the same header. > It's also a good feature to have by default in the Drupal core since it > helps a lot to polish the layout. -- [ Drupal support list | http://list.drupal.org/ ] |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Two problems: 00035, Abalieno |
|---|---|
| Next by Date: | Re: Two problems: 00035, Tim Altman |
| Previous by Thread: | Re: Re: Two problemsi: 00035, Abalieno |
| Next by Thread: | Re: Two problems: 00035, Bèr Kessels |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |