show just one date for multiple entries on same day

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
jaal
Regular
Posts: 63
Joined: Thu Oct 26, 2006 2:48 pm
Location: Guetersloh, Germany
Contact:

show just one date for multiple entries on same day

Post by jaal »

Hi,

is it possible to show multiples entries for the same day under the same date?
I'm currently rewriting the competition theme for my needs and there is a date header for every entry.
In my old blog (nucleus) I had just one date for each day. (i.e. http://blog.salid.de/archive/1/2006-10-12)

Thanks
Jan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: show just one date for multiple entries on same day

Post by garvinhicking »

Hi!

Yes, you can have/do that. Have a look at the default Serendipity 2.0 or 3.0 themes (entries.tpl) where you can see how they nest the {foreach} loops to get the desired result.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jaal
Regular
Posts: 63
Joined: Thu Oct 26, 2006 2:48 pm
Location: Guetersloh, Germany
Contact:

Post by jaal »

The competition theme had placed the dategroup in the inner entries, which resulted in showing the date for every item.
After placing it in front of the entry it does works.

Thanks!
Post Reply