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

Processing twig in additional editor fields

Started by Muut Archive 9 years ago · 1 replies · 548 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 2272 9 years ago
Archive · by Muut Archive, 9 years ago
2 1495 9 years ago
Archive · by Muut Archive, 9 years ago
2 4741 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