Extension · Mecha CMS

Add extra functionality to the core engine.

Comment

Author: Taufik Nurrohman · 335 Views

Tweet

Built-in commenting system. Use this extension to enable comment feature on any page you want.

Download Latest Version

Edit the page.php file in your active shield folder then put this snippet after the </article> tag:

<?php Shield::get('comments'); ?>

Constant 

This extension automatically adds a comment folder within the lot folder, which will also automatically set a new constant based on the folder name with a value of the folder path:

COMMENT

Class 

We now have a Comment class which works the same as the Page class, but with custom hook namespace:

Comment($input = null, $lot = [], $NS = ['*', 'comment']);

Example:

$comment = new Comment('.\www\lot\comment\article\test-page\2014-05-05-09-09-32.page');

Dependency 

Extension 

Conflict With 

Plugin