Comment
Table of Contents
Built-in commenting system.
Something looks broken? We accept bounties to fix them faster.
^ | 55 Downloads |
---|---|
v1.20.1 | 170 Downloads |
v1.20.0 | 123 Downloads |
v1.19.2 | 139 Downloads |
v1.19.1 | 97 Downloads |
v1.19.0 | 101 Downloads |
v1.18.1 | 116 Downloads |
v1.16.1 | 95 Downloads |
v1.16.0 | 112 Downloads |
v1.15.4 | 99 Downloads |
v1.15.3 | 93 Downloads |
v1.7.2 | 44 Downloads |
Installation
The comment system will be activated automatically, but you need to manually install the comment area in the layout file. Edit .\lot\layout\page.php
file then put this snippet just after the </article>
tag:
<?= self::comments(); ?>
Comment Flags
Set specific comment visibility through page properties. Add a comment
property within 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:
comment: false
...
Page content.
To set pre-defined comment visibility globally, specify a comment flag on the first array of the layout arguments:
<?= self::comments([2]); ?>