Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-11-11 01:28:26

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

custom dates

did some searching on the forum but didn’t find what i was looking for. i need a plugin that will allow me to assign a secondary date to an article.

the main use of this is; a journalist’s portfolio site. there’s the day on which the author “adds” the article to the site, which is your main txp article date, and then i need a second date field for when the article actually got published in a newspaper or whatever. and then you can sort it.

Offline

#2 2008-11-11 02:35:40

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: custom dates

Use a custom field to carry the articles’ published dates in the ISO 8601 format (2008/11/10) and sort on that, e.g. <txp:article sort="custom_3 desc" />, when appropriate.

Last edited by joebaich (2008-11-11 02:36:52)

Offline

#3 2008-11-11 02:49:06

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: custom dates

joebaich wrote:

Use a custom field to carry the articles’ published dates in the ISO 8601 format (2008/11/10) and sort on that, e.g. <txp:article sort="custom_3 desc" />, when appropriate.

sounds interesting – but if i use that custom field, the publisher has to set two dates, one is the ISO one you mention and one is the human-readable date. i guess it’s not a big deal, but it would be great if a plugin could do both of those in one shot

Offline

#4 2008-11-11 05:34:24

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: custom dates

Most humans I know can read a ISO 8691 formatted date instinctively :-) but I digress.

You may not need that plug in. If the date that the article is added to the site assumes secondary importance once the article has been published but must merely be retained as a matter of record, you might consider using a custom field to record that in ISO 8601 or any other suitable format. Use the TXP date to record the published date by having the publisher select ‘Set Timestamp to Now’ at the same time as he makes the article live.

Offline

#5 2008-11-11 05:42:08

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: custom dates

joebaich wrote:

Most humans I know can read a ISO 8691 formatted date instinctively :-) but I digress.
You may not need that plug in. If the date that the article is added to the site assumes secondary importance once the article has been published but must merely be retained as a matter of record, you might consider using a custom field to record that in ISO 8601 or any other suitable format. Use the TXP date to record the published date by having the publisher select ‘Set Timestamp to Now’ at the same time as he makes the article live.

no the iso date is important for the average human to read and comprehend easily because it’s a portfolio site. well both dates are important to be easily read cause we also have a “added to the site” date

Offline

Board footer

Powered by FluxBB