Hello,
How do you know when the page was created? I found in the docs only when the page was edited for the last time?
greetings
Hello,
How do you know when the page was created? I found in the docs only when the page was edited for the last time?
greetings
I’d use a creation date field for this; otherwise you would have to make sure that your file system creation date is preserved over time (e.g. when stuff is moved between servers), also, there doesn’t seem to be a file creation time on most Unix systems…so only the modified time gets stored.
When creating a new topic, please choose the question category that corresponds to your Kirby version. It helps everyone to immediatly see what Kirby version you are using. The „General" category is not intended for questions, if you need help, use the „Questions “ category.
you mean something like that:
created:
label: created
type: date
width: 1/2
default: ????
time: true
disabled: true
what is the right word to save the date when the page is created ?
and if is possible to hidde the field ?
sorry but i’am don’t unterstand in the docs which words I can use there
“default mixed” – “Default date when a new Page/File/User gets created”
There used to be a today
keyword, but I think I’ve seen an issue somewhere.
If you want a hidden field, use a hook.
created:
label: created
type: date
time: now
width: 1/2
default: today
disabled: true
https://getkirby.com/docs/reference/panel/fields/date
option -> time
what does “… an array of time field” mean ? I would set the current time
Set the default to now
and time
to true
:
created:
label: created
type: date
time: true
default: now
disabled: true
thank you @texnixe for helping.
@texnixe Quick question about this old answer of yours: This works for me, but it does not set the field to local time, but to GMT instead. Any way that I can always set this to local time? Thanks!
Have you set the timezone? See