Add a created and updated date field blueprint and a hook that automatically updates the updated date when saving a page.
This commit is contained in:
19
blueprints/fields/dates.yml
Normal file
19
blueprints/fields/dates.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
type: fields
|
||||
|
||||
fields:
|
||||
created:
|
||||
label: Created
|
||||
type: date
|
||||
default: now
|
||||
required: true
|
||||
time:
|
||||
notation: 12
|
||||
step: 1
|
||||
updated:
|
||||
label: Updated
|
||||
type: date
|
||||
default: now
|
||||
required: true
|
||||
time:
|
||||
notation: 12
|
||||
step: 1
|
||||
Reference in New Issue
Block a user