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

Processing twig in additional editor fields

Started by Muut Archive 9 years ago · 1 replies · 574 views
9 years ago

Hi all,
I extended the default.yaml blueprint with a new tab in which I have an additional markdown editor field.
Now I'm wondering if it's possible to enable twig processing for this field, so that I could use something like this in it:

TWIG

This works in the main content editor if I have twig processing enabled, but not in additional editor fields.
Does anyone have a way how to enable it in all editor fields?
Thanks,
Beni

9 years ago

evaluate_twig will work:

TWIG

test: "something {{base_url}}"
process:
    twig: true
- - - 

{{ evaluate_twig(header.test)}}

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2563 9 years ago
Archive · by Muut Archive, 9 years ago
2 1689 9 years ago
Archive · by Muut Archive, 9 years ago
2 4981 9 years ago
Archive · by Muut Archive, 9 years ago
1 3806 9 years ago
Archive · by Muut Archive, 9 years ago
3 1799 9 years ago