Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Markdown header area

Started by Muut Archive 12 years ago · 1 replies · 351 views
12 years ago

Is there a way that I can create my own header item for use in my twig template.

12 years ago

of course, that's built-in. Documented in the docs here

TXT
custom_field: 'some value'

and then in the Twig you can access that like this:

TWIG
{{ page.header.custom_field }}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2273 9 years ago
Archive · by Muut Archive, 9 years ago
2 1495 9 years ago
Archive · by Muut Archive, 9 years ago
2 4742 9 years ago
Archive · by Muut Archive, 9 years ago
1 3552 9 years ago
Archive · by Muut Archive, 9 years ago
3 1618 9 years ago