
Table of Contents
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:
Value | Description |
---|---|
0 |
Disable comments. |
1 |
Enable comments (default). |
2 |
Disable comments, but keep the published comments visible. |
false |
Alias for 0 . |
true |
Alias 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]); ?>
6 Comments
Kang Rian
Nyoba reply.. ✌🏻
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 ofself::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.
Yuli Akbar Dwi Lino
Test komen
Davidspalk
снять проститутку в челябинске