Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Markdown header area

Started by Muut Archive 11 years ago · 1 replies · 238 views
11 years ago

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

11 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 1321 9 years ago
Archive · by Muut Archive, 9 years ago
2 916 9 years ago
Archive · by Muut Archive, 9 years ago
2 4047 9 years ago
Archive · by Muut Archive, 9 years ago
1 2921 9 years ago
Archive · by Muut Archive, 9 years ago
3 1105 9 years ago