Mecha CMS

Add extra functionality to the core engine.


Table of Contents
  1. Installation 
  2. Comment Flags 

Built-in commenting system.

Download Stable Version Download Development Version

Something looks broken? We accept bounties to fix them faster.

v1.20.1170 Downloads
v1.20.0123 Downloads
v1.19.2139 Downloads
v1.19.197 Downloads
v1.19.0101 Downloads
v1.18.1116 Downloads
v1.16.195 Downloads
v1.16.0112 Downloads
v1.15.499 Downloads
v1.15.393 Downloads
v1.7.244 Downloads


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:

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


title: Page Title
description: Page description.
author: Taufik Nurrohman
type: Markdown
  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]); ?>