This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Error when retrieving vars from included template {% include x with y %} #34
Comments
This should work, can you give me more context and post the whole text.twig file and your twig config? Are you on the latest version? |
I'm on the last version : 4.1.7.
from my page template I call this macro :
I have a builder block (layout field) ('@snippets/blocks/builder.twig') which also use a template suggestion system :
So if I add a text block it calls
which contains
My twig configuration is the following :
|
I have found the solution. Cleaning some content text files containing old references to a field solved the problem ! |
Ah good that you found the solution. Thanks for looking into it on your own. I was busy the weekend. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
Vars sent to included template seems to not be sent or included :
{% include '@snippets/blocks/text.twig' with { 'foo':'bar'} %}
When I do a
{{ dump(foo) }}
in @snippets/blocks/text.twig, I have an error :Maybe I do something wrong but it doesen't seems
Thank you
The text was updated successfully, but these errors were encountered: