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

Comment form not showing (comments - plugin)

Started by Muut Archive 10 years ago · 5 replies · 1452 views
10 years ago

Hi,

I use a variation of the pinpress theme and try to implement the commencts plugin.

But the comment form does not show. I just see a batch "0 Comments".

My configuration:
Structue:
/blog = blog page with the list of the blogposts
/blog/first-blog-post = URL of the blog posts

user/plugins/comments/comments.yaml
-```
enabled: true

enable_on_routes:

  • '/blog'

disable_on_routes:

  • /blog/blog-post-to-ignore
  • /ignore-this-route

    - '/blog/daring-fireball-link'


/user/themes/pinpress/templates/partials/blog_item.html.twig
-```
{% if not truncate %}
{% if config.plugins.jscomments.enabled and config.plugins.jscomments.provider %}
<div class="comments" id="comments">
<h4>Comments:</h3>
<div class="comments-content">
{{ jscomments(config.plugins.jscomments.provider) }}
</div>
</div>
{% endif %}

TWIG
    {% if config.plugins.comments.enabled %}
    <div class="comments" id="comments">
      <h4>{{ grav.twig.comments|length }} Comments:</h3>
      <div class="comments-content">
        {% include 'partials/comments.html.twig' with {'page': page} %}
      </div>
    </div>
    {% endif %}
TXT


If I take the latest pinpress skeleton and install it to http://domain.com/test/ I have the same issue. Comment form does not show.

Any ideas.
10 years ago

Try switching the theme to Antimatter, which follows the same structure so you should not need any change. Is the comments form appearing?

10 years ago

Yes, when I use Antimatter theme it works. So the problem seems to be pinpress.
I dont know why. Because the demo which is linked on this site works with comments.

What I try next....

I watch how the code looks in antimatter an try im implement it in pinpress.

Thanks for you help

10 years ago

Simply remove user/themes/pinpress/templates/partials/comments.html.twig. I checked and it's not providing any styling improvement. Plus, it's breaking the form submit. I'll issue a theme update.

10 years ago

Thanks a lot. It is working now.. Great support, awesome CMS!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4065 9 years ago
Archive · by Muut Archive, 9 years ago
1 2953 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago