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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Comments plugin without submit form

Started by Werner Joss 7 years ago · 1 replies · 582 views
7 years ago

I'm currently trying to get the comments plugin to show comments on pages without the comment submit form.
the reason is, I'm migrating an existing Wordpress blog to Grav, which is now mostly working,
but I don't want to enable submitting comments on old posts which already have comments, those should only be visible.
I wonder if this might be possible by tweaking comments.html.twig (already tried that without success) or if this would need the plugin source code to be modified (by e.g. introducing a new 'show_comments' twig variable ?

7 years ago

just to answer my own question 😉 - I solved the problem by using a modified item_cform.html.twig which would incorporate an also modified partials/blog_item_cform.html.twig, including the comments submit form.
Now I can use this for (new) posts as long as I want comments submit to be enabled.
Later, I use templates which just show the comments, but no submit form.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 42 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago