Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Reset time to now
When re-assigning an article status, for example from “Live” to “Hidden” (it may also happen for other status re-assignments but this is the most common one for me), Textpattern sets the “Reset time to now” option to “positive”. This means that the now “Hidden” article suddenly becomes the latest article albeit that it isn’t being displayed.
I’m thinking that this is a user-option and should always be a user-option, not automated by Textpattern.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#2 2011-11-24 17:44:47
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Reset time to now
+1
It doesn’t make things easier that you can’t watch that the same is also happening hidden in a closed “More” section. (Glad to see you back here, Stuart.)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Reset time to now
Thanks Uli. Haven’t really been away. Just way too busy to post anything. I do drop by regularly for a “read”.
Anyway I realise that if I had the “More” tab open I would see it but I just do what I normally do which is to change the status and save. I don’t expect Textpattern to change anything I haven’t given it permission to do.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#4 2011-11-24 18:04:04
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Reset time to now
Hi,
a temporary solution – if you are using bot_wtc – is to go to extensions->bot_wtc->“additional js code” and add:
<script type="text/javascript">
$(document).ready(function() {
$('#reset_time').attr('checked',false);
});
</script>
edit:
Another option is to use jnm_no_reset_time which is a standalone plugin which basically does the same thing
Last edited by redbot (2011-11-24 18:10:46)
Offline
Re: Reset time to now
Thanks for the info Redbot but definitely temporary measures. It should be the other way around ie. use a plugin if you want it automated otherwise Textpattern should only do what it is asked to do which is to change the status.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Reset time to now
+1 to to change the core.
This automation has often created trouble. It’s certainly convenient for a blog, but problematic for other types of content (ex: events, portfolio).
Thanks redbot for tips.
Offline
Re: Reset time to now
thebombsite wrote:
I’m thinking that this is a user-option and should always be a user-option, not automated by Textpattern.
You are probably right. Would you suggest this to be a manual toggle even for articles in the “draft” state?
Offline
Re: Reset time to now
Erm. Good question. You will have to tell me if this is possible.
If it is a new article and saved to “Draft” can it be saved without a date or maybe with all zeros ie 00/00/00?
I’m thinking that if an article isn’t new and thus already has a date, that date shouldn’t be changed. It should remain a user option. If it is a new article which has been saved to “Draft” and has no date or it is all zeros then today’s date would be appropriate when the article is switched to “Live”.
How does that sound? I’m wondering if that can be done though. If not I would opt for keeping the user option at all times.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Reset time to now
When a new article is written, when the first save, if the date field is empty, fill it automatically (date now).
If a date is present, do not automatically change.
Offline
#10 2011-11-30 12:00:42
- Algaris
- Member
- From: England
- Registered: 2006-01-27
- Posts: 553
Re: Reset time to now
I like the idea of this feature request as well as it’s something I’ve come across when updating articles.
When I’m working on articles that I need to post in the past or the future I set them as draft or pending till they are ready to go live and change the date after the first save. sacripant’s suggestion would no extra effort to implement into my workflow.
Offline
Re: Reset time to now
Fixed in r3614 though I have yet to test it.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Reset time to now
@Robert.
Works fine. Tks. You’re a chief (PHP dev Chief ;)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Pages: 1