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 · 237 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 1319 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4045 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago