Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Controllers · mod_comment
  • Reference
  • Backend developer
  • Comments and community
  • Controller
  • Edit

controller_admin_comments

Module

mod_comment

Shows an admin screen with an overview of most recently created comments. The screen offers the option to moderate the comments or delete them entirely.

Handled events

  • {comment_delete, Args} deletes a comment and runs its success actions.
  • {comment_toggle, Args} toggles comment visibility and updates the controls in the comments list.

Edit on GitHub

Related documentation

Models

comment

Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.

Controllers

controller_admin_comments_settings

Shows an admin settings screen where you can edit settings related to module#mod_comment.

Controllers

controller_language_set

Controller which sets the language as given in the code argument, and redirects the user back to the page given in the p argument.

Controllers

controller_admin_edit

The main admin edit controller. This controller serves the edit page where resources can be edited.

Controllers

controller_admin_mailinglist_recipients

Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next to them to…

Controllers

controller_admin_mailing_run_content

Serve the saved HTML copy of a mailing run for a specific language.

Controllers

controller_admin_mailing_run

Display mailing history and the delivery status of an individual mailing run.

Notifications

observe_development_reload/2

Reloads templates, modules, translations, and other indexed development files after a manual request.

Controllers

controller_test_helloworld

Example controller used by the Zotonic test sandbox.

GitHub © 2026 Zotonic