Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Per default, set current date for newly created page - how?

Started by Endogen 9 years ago · 0 replies · 683 views
9 years ago

From time to time i real an old blog post it wrote and when i discover a type i update the post. The problem here is that per default this saves the current date and the post is on top, which i don't want.

I can of course set the date manually but how would i do that automatically? I would like, at the time a post is published, to set the current date & time, so that the next time i change a post that date will stay and i don't have to set that manually to keep the date.

👍 2

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 6 days ago
0 108 6 days ago
General · by lynbor, 1 month ago
3 437 2 weeks ago
General · by lynbor, 3 weeks ago
7 557 2 weeks ago
General · by Harry, 2 weeks ago
0 159 2 weeks ago
General · by Old Man Umby, 1 month ago
2 308 3 weeks ago