When creating page from the frontend, append timestamp to page.txt

Hi,

when a form from the frontend is sent and created, I append a timestamp to the folder name.

What I’d like to do, is to append the same timestamp to a field in the newly created page.txt.

How could this be done? Through a panel.hook that fills in the date field?

Or should I make an invisible field in the form that is prefilled upon page load—with the current date and time—and therefore when the user sends the form that field registers to page.txt as well?

Thanks

You can use an invisible field, but there’s no need for that, you could just add the current timestamp when the page is created, as part of the data that is saved to the file?

Right! Very easy, very handy.