Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-09 22:20:21

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Posted "since" on future articles

<txp:posted format="since" /> on an article with a posted date in the future seems to come up with a few seconds ago.

Is that logical Captain?

It would be a lot less misleading if it returned something else (“in the future”, “not yet”, nothing?).

Could then be used to detect future-posted articles … but a <txp:if_future_article> tag would be even better.

Offline

#2 2012-10-10 11:58:07

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: Posted "since" on future articles

Offline

#3 2012-10-10 12:20:00

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Posted "since" on future articles

Thanks Claire, good to know it exists!

I still think there should be a core tag for this – txp:if_expired exists, so why not if_posted / if_future?

Offline

#4 2012-10-12 15:04:34

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: Posted "since" on future articles

gomedia wrote:

<txp:posted format="since" /> on an article with a posted date in the future seems to come up with a few seconds ago.
Is that logical Captain?

+1. I’ve always thought this was a little confusing. I was thinking format="offset" might be a way around it, should a tag modification be looked into, rather than format="until", so it covers both bases.

Offline

#5 2012-10-17 12:13:26

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Posted "since" on future articles

<txp:posted format=“since” /> on an article with a posted date in the future seems to come up with “a few seconds ago”.

Any thoughts from the devs about this one?

Offline

#6 2012-10-17 15:29:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Posted "since" on future articles

Acknowledged. The “since” format as a whole is bit of a bag of rotten tomatoes. It’s not properly localized, and the supported spawn goes from a minute to days. Not whole a lot formats.

Offline

#7 2012-10-17 15:56:55

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: Posted "since" on future articles

Gocom wrote:

Acknowledged. The “since” format as a whole is bit of a bag of rotten tomatoes. It’s not properly localized, and the supported spawn goes from a minute to days. Not whole a lot formats.

Thanks, Jukka — good to know.

Offline

#8 2012-10-18 05:49:37

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Posted "since" on future articles

Gocom wrote:

Acknowledged …

Thanks.

Offline

Board footer

Powered by FluxBB