Closed vonscriptor closed 3 months ago
So yes, it's going to try and find that template relative to _comments
, because that acts as the template root.
Using the commentsSiteInclude()
Twig function should work to resolve that, and is identical to the include
tag.
{{ commentsSiteInclude('_/partials/example') }}
Perfect, that worked. I didn't see that mentioned in the docs, so might be nice to add! 😁 Thanks!
Describe the bug
I'm trying to
{% include '_/partials/example' %}
from inside_comments/_includes/avatar.twig
and get the following error:Unable to find the template “_/partials/example” in "_includes/avatar" at line 20.
Steps to reproduce
templateFolderOverride
locationCraft CMS version
4.8.2
Plugin version
2.0.11
Multi-site?
No
Additional context
No response