Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-07-09 18:55:11

belleliu
New Member
From: Hong Kong
Registered: 2004-12-13
Posts: 3
Website

How to show entry date only once?

Running txp 1.0rc3, I use this form to display the list of latest entries on a section index page:

<h3><span class=“date”><txp:posted format=”%B %d, %Y” /></span></h3>
<h3><txp:permlink><txp:title /></txp:permlink></h3>

So the output becomes:

July 10, 2005
Happy Birthday

July 10, 2005
My new iMac

July 10, 2005
A good movie

Since I always have a few entries on the same date, how can I make the date show only ONCE when there are two or more entries?

Like this:

July 10, 2005

Happy Birthday

My new IMac

A good movie

Thanks a lot for any help!

Cheers,
Belle

Txp newbie from Hong Kong


I’d rather be a failure at something I love
than a success at something I hate. —George Burns
Visit me at www.belleliu.com

Offline

#2 2005-07-09 19:12:25

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: How to show entry date only once?

use the rss_suparchive plugin. it’s very customizable and will do exactly that.

Offline

#3 2005-07-09 19:20:36

belleliu
New Member
From: Hong Kong
Registered: 2004-12-13
Posts: 3
Website

Re: How to show entry date only once?

hi paularms, thanks a lot for your help!! so fast!!! :D

Cheers,
Belle


I’d rather be a failure at something I love
than a success at something I hate. —George Burns
Visit me at www.belleliu.com

Offline

#4 2005-11-22 04:15:42

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: How to show entry date only once?

paularms – I tried to use the rss_superarchive plugin to accomplish this but it seems that I can’t because when you use the “form” attribute in the tag it won’t let you use “showdate” so it can’t provide that solution.

Am I missing something? Has anyone accomplished what belleliu was hoping to do?

Offline

#5 2005-11-22 04:27:38

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: How to show entry date only once?


Alex

Offline

#6 2005-11-22 04:39:00

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: How to show entry date only once?

zem…that works somewhat for me, but again comes up a little short. I need to be able to group the posts by day and then I want to put a border around it like:

———<br/> | 10/04 | article1 | article2<br/>
———<br/>
———<br/> | 10/05 | article3 | article4<br/>
———<br/>

from my understanding of if_different it wouldn’t be able to provide this. Any suggestions?

Last edited by variaas (2005-11-22 04:40:08)

Offline

#7 2005-11-22 05:20:05

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: How to show entry date only once?

Any suggestions?

Nope.


Alex

Offline

#8 2005-11-22 05:31:53

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How to show entry date only once?

Well, you can try using Alex’s plugin, zem_nth, along with if_different.

Offline

#9 2005-11-22 06:17:08

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: How to show entry date only once?

Well personally I would forget the border and not use a plug-in but that’s just me. I’m sure you could style them really nice without it and you would learn more about TXP instead of going for the easy option. :)

Last edited by thebombsite (2005-11-22 06:22:22)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB