Hi everyone,
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:
TWIG{{ grav.twig.comments|raw }}and
TWIG{{ grav.twig.render('partials/comments.html.twig', {page: page})|raw }}and
TWIG{% if config.plugins.comments.enabled %} {% include 'partials/comments.html.twig' with {'page': page} %} {% endif %} -
Debugging shows that neither
confignorpageobjects are available in the particle context (tried{{ dump(config.plugins.comments) }}and{{ dump(page) }}- both empty). -
Checked for template files:
- No
blog-item.html.twigin/user/themes/g5_helium/templates/partials/ - No relevant templates in
/user/themes/g5_helium/particles/ - Only YAML files present in
/layoutsand/blueprints
- No
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?
Any help would be greatly appreciated. Thank you!