Comment

Comment feature.

4 stars out of 5

5 0 0 0 1
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 3.0.1
Table of Contents
  1. Installation
  2. Visibility

Installation

The comment system will be activated automatically, but you need to manually install the comment area in the layout file. Edit .\lot\y\*\page.php file then put this snippet just after the </article> tag:

<?= self::comments(); ?>

Visibility

Set comment visibility on specific pages via page properties. Add this property to your page’s state property with one of these values:

ValueDescription
0Disable comments.
1Enable comments (default).
2Disable comments, but keep the published comments visible.
falseAlias for 0.
trueAlias for 1.

Example:

---
title: Page Title
description: Page description.
author: Taufik Nurrohman
type: Markdown
state:
  x:
    comment: false
...

Page content.

To set pre-defined comment visibility globally, specify a comment visibility state on the first array of the layout arguments:

<?= self::comments([2]); ?>

7 Comments

Anon

How to fix this? https://imgur.com/a/3E3TaX5

Anon

I already use comment: true but still.

Look like you just put the self::comments() block twice. Some layout has this feature enabled by default. Be sure to check the existence of self::comments() code in the layout files. Maybe it is already there, so you don’t need to do anything.

Please use the forum feature to ask more.

Davidspalk

снять проститутку в челябинске

Davidrip

https://www.mainmovs.com/