Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] [ORPHAN] tcm_fundate: custom date formatting
tcm_fundate is a drop-in replacement for txp:posted. It allows you to use basically any date format that you would like – using php’s date function. Although it uses php’s date syntax (reference table included in plugin help), it will automatically fix a few potential problems: the words “of, the, clock, minutes, seconds, and hours” will be automatically escaped. It’ll also catch other escaped characters (\n and \r) from being lost.
You can also check out a demo on one of my sites.
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
Can we use it to translate date into non english language ?
Offline
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
No need to work too hard on that, Dean has started to write localized datetime tools, it’s just not implemented yet.
I simply wanted to know if that was possible right away with your plugin :)
Offline
#5 2004-10-27 14:02:14
- apo
- Member
- From: Germany
- Registered: 2004-10-27
- Posts: 53
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
thx for this great simple plugin… i’m using it ‘til a localization of the normal postdate is implemented :-)
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
Is there a similar plugin for the comments date?
Johan Nilsson
Offline
#7 2004-11-04 22:56:10
- Downleader
- New Member
- From: Netherlands
- Registered: 2004-11-02
- Posts: 2
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
I tried to install it, oke that works. But when I insert the tag, for example: < txp:tcm_fundate format=”%d-%m-%Y” / > or < txp:tcm_fundate format=“d-m-Y” / > (ignore the spaces between <>), no date is shown. How can I solve this? Both don’t work?
Last edited by Downleader (2004-11-05 08:24:48)
===
Get firefox!
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
where are you putting the tag?
Offline
#9 2004-11-05 08:25:03
- Downleader
- New Member
- From: Netherlands
- Registered: 2004-11-02
- Posts: 2
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
in the form for an article
===
Get firefox!
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
is it activated in the plugin list?
Offline
Re: [plugin] [ORPHAN] tcm_fundate: custom date formatting
Same request made for zem_posted: Can you add something to enable specifying lang=“el” that would point to /textpattern/lang/el_dates.txt ? Also, can you make it work for comments? Thanks.
VC3 :: weblog :: my wishlist
Offline