Topic: Comments Plugin for Morfy CMS
I’m trying to be out of the box and now I’m creating comment feature for static website.
Basic Installation
Download the plugin here, put the comments folder with its contents in plugins folder. Update your config.php file:
<?php return array( ... ... ... 'plugins' => array( 'markdown', 'sitemap', 'admin', // <= Recommended to be installed 'comments' // <= Activation ), 'comments_config' => array( // Available in `configuration.txt` ) );
Updating the Template File
Put this snippet in your blog_post.html
<section class="comments"> <?php Morfy::factory()->runAction('comments'); ?> </section>
Done.
The admin plugin is not required, but if you already have it installed in your theme, then you will get some advantages such as having your own admin class in comment.
Testing comment and more details can be done and found in my blog post → hxxp://latitudu. com/notes/morfy-cms/plugins/comments-plugin