# mod\_comment

Source: https://zotonic.com/docs/1742/mod_comment

URI: https://zotonic.com/id/1742

Language: en



Implements a basic commenting system, enabling commenting on [resources](/id/doc_glossary#term-resource).

The module has an admin comment overview, allowing the administrator to review the comments or delete them.

To enable commenting in your site, include `_comments.tpl` on your resource’s page template, passing an id parameter for the resource on which you want users to be able to comment.

Accepted Events
---------------

This module handles the following notifier callbacks:

- `observe_admin_menu`: Contribute module entries to the admin menu tree.
- `observe_rsc_merge`: Move all comments from one resource to another using `m_comment:merge`.
- `observe_search_query`: Return the list of recent comments using `m_comment:search`.

Delegate callbacks:

- `event/2` with `submit` messages: `newcomment`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1742?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1742?language=en>)
