Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-31 16:03:15

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#2 2010-12-31 16:09:09

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#3 2010-12-31 16:18:13

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#4 2010-12-31 16:27:35

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#5 2011-08-25 11:33:17

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#7 2013-02-09 11:55:56

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

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 themeMinimum 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

#8 2013-03-27 12:17:40

etc
Developer
Registered: 2010-11-11
Posts: 5,187
Website GitHub

Re: Behavior of txp:posted

Try lang="de-de", as discussed here. If it does not help, your server probably misses German locales. Then etc_date could help.

Offline

Board footer

Powered by FluxBB