I’m trying to add comments to articles in GRAV CMS (latest version) using the Gantry 5 Helium theme (latest version) and Comments plugin. I’ve encountered some issues getting the comments to display.
Current setup:
Latest GRAV CMS
Latest Gantry 5 Helium theme
Latest Comments plugin (installed and enabled)
What I’ve tried:
Adding comments via Custom HTML particle in Gantry admin:
{% if config.plugins.comments.enabled %}
{% include 'partials/comments.html.twig' with {'page': page} %}
{% endif %}
Debugging shows that neither config nor page objects are available in the particle context (tried {{ dump(config.plugins.comments) }} and {{ dump(page) }} - both empty).
Checked for template files:
No blog-item.html.twig in /user/themes/g5_helium/templates/partials/
No relevant templates in /user/themes/g5_helium/particles/
Only YAML files present in /layouts and /blueprints
Questions:
What’s the correct way to integrate Comments plugin with Gantry 5 Helium theme?
How can we access the GRAV page context within Gantry particles?
Is there a specific template override needed for the Helium theme?
I would love to have more time to help you, but right now it is impossible. However, I can tell you that in Gantry you have to specify the content inside the {% block particle %} blocks, and the content of the .yaml file is called with particle.xxx (where xxx is a variable specified in .yaml).
For example, the particle sample.html.twig in its .yaml file has this: