Mecha CMS

Add extra functionality to the core engine.

Comment Hint

Add a few instructions for your visitors on how to write a comment, right below the comment message field.

Download Stable Version Download Development Version

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

^106 Downloads
v1.1.026 Downloads
v1.0.1114 Downloads
v1.0.019 Downloads

Open .\lot\x\comment.hint\state.php file then replace the default comment hint state as you wish:

<?php

return [
    'content' => 'Some HTML tags are allowed to be written in the comment body.'
];

You can also specify it through the extension state modifier. Makes the comment hint becomes even more dynamic:

<?php

if ($is_comment_use_markdown) {
    $hint = 'Please use Markdown syntax in the comment body. All HTML tags will be removed!';
} else {
    $hint = 'Some HTML tags are allowed to be written in the comment body.';
}

State::set('x.comment\.hint.content', $hint);

0 Comments

No comments yet.