Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
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
Pages: 1