Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to integrate comments into grav

Started by Muut Archive 11 years ago · 2 replies · 2365 views
11 years ago

Hi,

i feel kind of stupid for asking this basic stuff but since i don't get it, maybe someone can help me out on that:
I want to have comments on my blog.

What i have:

  • Grav 1.0.0 RC5
  • Comments plugin installed
  • Created a page with folder name blog and Page File Blog
  • Added a post to the blog. Page File Blog and Parent Blog
  • No other customization

What i did:

  • Included {% include 'partials/comments.html.twig' with {'page': page} %} into item.html.twig
  • Copied comments.yaml into user/plugins/comments/

At this point i would expect something to show up when i access a blog post but that's not the case. I see the 'Comments' section in the admin interface but nothing on the site itself.

Cheers,
Endo

11 years ago

Copy comments.yaml to user/config/plugins/comments.yaml, and edit the enable_on_routes property to match your blog posts, that should work

11 years ago

Oh sorry, i actually already copied comments.yaml to user/config/plugins/comments.yaml. Since that is already done (i did exactly what the readme said on the plugin github site) i suspect that i have to change something related to the routes. I didn't change anything there because it seems to reflect my setup. The default under enable_on_routes is - '/blog' and that is also the folder name of my blog page. Or what do i have to add there? I also tried to add the folder name of my first blog post - still the same problem.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago