Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Reset time to now...
Textpattern version: 4.0.4 (r2313)
Changing status of an article, the date gets reset to now, but I don’t want it to change. I publish just one article on the front page of a particular site, I move them from hidden to live and back, just depends on what I decide to show.
What’s the logic behind changing the date after an article has been in the system for so long?
Also, since the date is hidden under the More link, it’s hard to know when it will change.
Last edited by hcgtv (2007-05-04 13:54:15)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#2 2007-05-04 17:27:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Reset time to now...
If you revert to pre-r2305, does that make it work again?
Offline
Re: Reset time to now...
Reverted Wet’s changes:
This is what happens,
- I set it from Live to Hidden, the Last modified date changes, Posted stays the same – side note, it still shows up on the front page, this is new.
- Set it from Hidden to Live, the Posted date changes.
- Set it to Sticky, the Last modified date changes, it goes off the front page.
- Set it to hidden, the Last modified date changes, stays off the front page.
I guess the date changes are triggered by certain conditions?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#4 2007-05-04 20:01:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Reset time to now...
Did you preview anywhere in there?
Offline
Re: Reset time to now...
I believe this was already changed in 4.0.4, not afterwards.
In TXP 4.0.3, the ‘reset time to now’ option was checked only when you clicked the ‘write’ tab to start a new article.
In TXP 4.0.4, the ‘reset time to now’ option is checked whenever the status of the article is anything other than sticky or live. If you don’t want that to happen once an article has been set to live/sticky, you’d need an extra column in the txp_textpattern table to remember that or revert to 4.0.3 behaviour (personally I prefer the 4.0.4 behaviour over 4.0.3 in this case).
Last edited by ruud (2007-05-04 21:32:24)
Offline
Re: Reset time to now...
Mary, no preview.
ruud, thanks for the clarification.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#7 2007-05-04 23:55:12
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Reset time to now...
The reason ‘reset to now’ is checked by default for unpublished articles is this problem that occured in earlier versions:
User writes a draft article. 3 weeks later, they set the status to Live and publish the article. Unless they remember to check the ‘reset time to now’ box (which they usually don’t), the article is dated 3 weeks ago, and doesn’t appear at the top of the article list. Their impression is that Textpattern is broken, timestamps don’t work and articles are in the wrong order.
Your scenario (reverting articles from published to unpublished and back while retaining the timestamp) is far less common. You can still do it as long as you remember to uncheck the box when returning to live. It’s not perfect, but still better to require the extra step for the uncommon scenario, rather than the most common one.
Alex
Offline
Re: Reset time to now...
zem wrote:
Your scenario (reverting articles from published to unpublished and back while retaining the timestamp) is far less common.
Yes, I understand that what I’m doing is more of a static page swap kind of thing. I just gotta remember to press More and uncheck the timestamp box whenever I’m shuffling things around.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Pages: 1