Different comment thread for different page

Create issue
Issue #29 resolved
Philip Marlowe created an issue

My site consists of standard OctoberCMS Pages and blog posts by ProBlog Plugin. Are there any way to have comments for each pages, so we can only discuss about the page on comments? Currently all the comment tree are shown in every pages.

And, please explain the meanings of component's configuration: - Plugin: what is plugin? - Page number: this looks like the way to determine which page is on, but I don't know what is this - Slug: what is the different between this and Page number?

Thanks in advance.

Comments (7)

  1. Alexey Sozonov repo owner

    Plugin: what is plugin?

    For filtering only

    Снимок экрана 2018-08-17 в 23.13.41.png

    Page number: this looks like the way to determine which page is on, but I don't know what is this

    If you have comments more than this value

    Снимок экрана 2018-08-17 в 23.14.53.png

    you will see the pagination. For example you can get page number from url like this

    Снимок экрана 2018-08-17 в 23.16.02.png

    Slug: what is the different between this and Page number?

    Slug is the uniq parameter. For example you can take it from a blog post url or set manually. But you can have the same slugs for article (/post/example where :slug = example) and cms page (/example). Then you can set Plugin = Rainlab.Blog for one page and Plugin = October.Cms for another page. So you get comments for both pages.

  2. Philip Marlowe reporter

    Thank you very much for clearing up!

    For Plugin: If I have more than three Pages, and I want to have different comments for each Pages, from my understanding, I need to add another "Plugin" to differentiate each other and filtering them. Is it possible?

    For Slug: If I want to have different comments for each post of Blog (I use ProBlog plugin), what is appropriate parameter of slug? The page's URL would be fine. Blog's parent page's (where post list shown) url is set to "/blog/:filter?/:slug?/:month?/:instance?/".

  3. Alexey Sozonov repo owner

    For example If you have five CMS pages (/page1, /page2, /page3, /page4, /page5), you should set Plugin: October.Cms and can set Slug manually: page1, page2, page3, page4, page5 or leave empty. For ProBlog posts you can set Plugin: None (because I didn't integrate it with ProBlog) and leave slug empty.

    When slug is empty the comment will use URI as uniq parameter.

    Снимок экрана 2018-08-17 в 23.57.06.png

  4. Philip Marlowe reporter

    Thank you very much. Just to be clear, does "empty" mean null-string (delete ":slug")? If I set Slug = "" (nothing), an error is shown:

    Screen Shot 2018-08-18 at 6.02.53.png

    How can I set Slug empty?

  5. Philip Marlowe reporter

    Thank you so much for prompt and kindly support! Now the plugin is working as I expected! You're awesome!

  6. Log in to comment