Comments not show

Create issue
Issue #33 open
Former user created an issue

Hi, I have this page, a single post of Rainlab.blog component:

title = "Dettaglio Lezione"
url = "/lezioni/dettaglio/:slug"
layout = "post"
description = "Approfondimento della lezione"
is_hidden = 0

[session]
security = "all"

[blogPost lezione]
slug = "{{ :slug }}"
categoryPage = "lezioni/lezioni-categorie"

[comments]
plugin = "blog"
mode = 1
stickyReplies = 1
depth = 3
pageNumber = "{{ :page }}"
commentsPerPage = 20
rate = "none"
duration = 400
slug = ":slug"
==
<?php
use RainLab\User\Models\User;
function onEnd() 
{
    if (( $this->post != null )) {
        $this->page->title = $this->post->title; 
        $this['teacher'] = User::where('id', '=', $this->post->author_id)
        //->where('is_activated', 1)
        ->first();
    }

}
?>
==
{% component 'lezione' %}
{% component 'comments' %}

In this way, no comments are displayed in posts. If mode = 0 , it display same comments in every post. Where i wrong ?

Thanks for support

Comments (3)

  1. Alexey Sozonov repo owner

    Hello! It seems that everything is ok. Can you check db (you also can send a dump file with xeor_comments_comments table to sozonov.alexe@gmail.com and I will check too)?

  2. Log in to comment