pikim
1
When I have a process like
process:
- save:
filename: feedback.txt
body: "{% include 'forms/data.txt.twig' %}"
operation: add
in a form: is it possible to retrieve and use the settings of a specific plugin inside forms/data.txt.twig
? How?
@pikim, What have you tried sofar?
pikim
3
@pamtbaau
E.g. {% set feature_enabled = config.plugins.name.feature %}
in the first line of the twig and then use feature_enabled
inside the script.
@pikim, And then what happened?
pikim
5
@pamtbaau
Regardless of whether the boolean config.plugins.name.feature
is true
or false
, feature_enabled
is always null
.
pikim
7
@pamtbaau
Thanks! That solved the issue. I’m using {% set feature_enabled = context.config.plugins.name.feature %}
inside the macro now.