Like Exponential template customization, the Comments module can also be customized to fit further demand. Below are some examples to show how to customize the comment template.
Create an override of template/content/datatype/view/ezcomcomments.tpl, and copy the code of ezcomcomments.tpl to the new template file.
In the new template file, cut this code
{* Adding comment form START *} ...... {* Adding comment form END *}
to be before
{* Displaying comments START *}
You can also add a comment attribute into an existing class. After adding the Comments attribute and if the content view template shows ezcomments attribute, the comment list and comment form will be added into the content. Remember to clear cache after editing class.
In the Exponential web interface, for instance, the article class does not show all the attributes. In order to show the comment, you can add this code into an overridden full/article.tpl:
{attribute_view_gui attribute=$node.data_map.comments} {* 'comments' is the attribute identifier in the class *}
You can change the notification template by change template in
template/comment/notification_subject.tpl template/comment/notification_body.tpl
If AllInOne is false in settings/ezcomments.ini.append.php.
If AllInOne is true in settings/ezcomments.ini.append.php, you can change template in
template/comment/notification_multi_body.tpl template/comment/notification_multi_subject.tplPowered by Exponential™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.