Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How to show posted AND written dates of article?
Hi all,
I am a relative newbie to TxP, but my forum/faq search has not answered this question.
I have a number of articles that were written a few years ago that I would now like to post on my blog.
Due to the context within which they were written it isn’t appropriate to show the post date as the current date. But I don’t want to use the actual date they were written as the post date either because, technically speaking, they weren’t posted back then.
So, my question is this: Is there any way to show two dates – a posted date (today) and a written date (some years prior) for those entries that apply?
I’ve thought about using custom fields etc, but since both tags are dates, I was hoping there would be a more intuitive approach.
Last edited by speeke (2009-04-07 05:26:38)
“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower
Offline
#2 2009-04-07 05:32:21
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to show posted AND written dates of article?
I’m afraid you’ve already discovered your two options.
Offline
Re: How to show posted AND written dates of article?
Thanks for getting back so quickly, Mary.
I’ve since found msv_if_custom_article_date which should, at least, be able to identify the custom field as a date so that I can sort by date later if required.
“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower
Offline
#4 2009-04-07 18:22:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to show posted AND written dates of article?
Maybe you could use <txp:posted />
to display the original date, and <txp:modified />
to display the date you posted it (assuming you don’t need to show the real modified date as well).
Offline