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 · 680 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 peterparker08, 3 hours ago
0 10 3 hours ago
General · by Andy Miller, 5 days ago
0 85 5 days ago
General · by lynbor, 4 weeks ago
3 423 2 weeks ago
General · by lynbor, 3 weeks ago
7 540 2 weeks ago
General · by Harry, 2 weeks ago
0 149 2 weeks ago