comments icon indicating copy to clipboard operation
comments copied to clipboard

Cannot import macros template

Open pimago opened this issue 1 year ago • 1 comments

Describe the bug

When I try to import a macro template in one of my comment templates I get an "Unable to find the template" error.

For example when I do '{% import '_macros/userInfo' as macros %}' in my header.twig template

Steps to reproduce

  1. Import a macro template inside a comments template

Craft CMS version

5.5

Plugin version

3.0.4

Multi-site?

No response

Additional context

No response

pimago avatar Nov 15 '24 20:11 pimago

Like to do with how we switch template mode to resolve our templates. We handle this with includes by providing a {% commentsInclude %} and {% commentsSiteInclude %} tag, which is exactly the same as an {% include %} tag, but that's different for macros. Will look into it.

engram-design avatar Nov 15 '24 22:11 engram-design