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

Datetime only time

Started by Jan 8 years ago · 3 replies · 998 views
8 years ago

I would like to use the datetime field but only for choosing a time, without the datepicker. Is that possble?

8 years ago

In the previous version Grav was provided without datepicker for date field. Now you could modify the field o replace it with a new custom date field

8 years ago

Thanks for the hint. Any idea how exactly I can modify the field?

8 years ago

You can change some lines in :
system\blueprints\pages\default.yaml

YAML
        header.date:
          type: datetime
          label: PLUGIN_ADMIN.DATE
          toggleable: true
          help: PLUGIN_ADMIN.DATE_HELP
last edited 02/03/19

Suggested topics

Topic Participants Replies Views Activity
General · by lynbor, 3 weeks ago
3 352 3 days ago
General · by lynbor, 1 week ago
7 387 3 days ago
General · by Harry, 3 days ago
0 83 3 days ago
General · by Old Man Umby, 3 weeks ago
2 256 2 weeks ago
General · by jeremycherfas, 3 weeks ago
5 374 2 weeks ago