Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Access publish date from twig template

Started by maxime 6 years ago · 1 replies · 1397 views
6 years ago

Hello

I tried both 'page.header.publish_date' and page.publishDate() to access (and print) the publish date of the page, but none of those methods work.

How can I access the publish date from a twig template?

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 6 days ago
0 93 6 days ago
General · by Dima, 2 weeks ago
1 121 2 weeks ago
General · by pamtbaau, 2 weeks ago
0 192 2 weeks ago
General · by lynbor, 2 months ago
5 701 4 weeks ago
General · by Andy Miller, 1 month ago
0 425 1 month ago