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

Processing twig in additional editor fields

Started by Muut Archive 9 years ago · 1 replies · 451 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 1322 9 years ago
Archive · by Muut Archive, 9 years ago
2 917 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2922 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago