Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Behavior of txp:posted
posted
has optional gmt
and lang
attributes. If you also use the format
attribute, gmt
and lang
are applied before output.
But if you leave format
unset, the tag defaults to using the date or archive date format set in preferences (depending on context), and ignores gmt
and lang
.
Looks like a bug to me, but perhaps I’m missing something. Is this intentional?
Code is topiary
Offline
Re: Behavior of txp:posted
Also, “ modified
uses essentially identical code, except that it is missing class
and wraptag
attributes. These two tags should work in the same way, with the same attributes.
I know it is a guiding principle of Txp development to keep function calls to a minimum, but this seems to be a case where it would be worth the extra function call to have a single function used by both tags.
Code is topiary
Offline
Re: Behavior of txp:posted
Add “ expires
to the list of functions that could share a central date output function.
link_date
maybe too, although this tag defaults to the date format preference and does not use the archive date format preference.
Code is topiary
Offline
Re: Behavior of txp:posted
“Then there’s “ image_date
”:“http://textbook.textpattern.net/wiki/index.php?title=image_date, “ file_download_modified
”:“http://textbook.textpattern.net/wiki/index.php?title=file_download_modified, “ file_download_created
”:“http://textbook.textpattern.net/wiki/index.php?title=file_download_created, “ comment_time
”:http://textbook.textpattern.net/wiki/index.php?title=comment_time. There is a separate pref for comment time, but the rest of these use the archive date format, I think.
Code is topiary
Offline
Re: Behavior of txp:posted
Partially fixed with r3587.
Offline
#6 2012-06-14 08:23:07
- axelintu
- New Member
- Registered: 2012-01-14
- Posts: 5
Re: Behavior of txp:posted
Does anyone knows about this anymore? I’m using Textpattern 4.4.1 and if I use lang it doesn’t make any effect, with or without format.
Offline
Re: Behavior of txp:posted
axelintu wrote:
Does anyone knows about this anymore? I’m using Textpattern 4.4.1 and if I use lang it doesn’t make any effect, with or without format.
I noticed a similar behavior just now on my sites. I have a multi-site install and neither the settings in for my Textpattern site nor an explicit lang=“de” will change the way dates are presented. Instead of 1. März 2012 I am stuck with 1. March 2012.
Anyone able to help out? I am using Txp 4.5.4 and I am sure it used to work correctly on both feierabendyogi.de and yauh.de
Yoko for Textpattern – A free blog theme • Minimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often
Offline
Offline
Pages: 1