PureWiki features a built-in comment system that allows users to leave feedback directly on your wiki pages. It can be toggled globally in the Wiki Settings and enabled or disabled on a per-page basis.
Configuration
The comment system is configured in two layers:
- Global Settings: In the admin area under Wiki Settings > General Settings, you can activate the comment system globally and specify whether comments require approval before becoming visible.
- Page Settings: On each individual page, comments must be activated in the page settings tab.
Theme Integration
To render comments and the submit form, place the comments macro in your theme's page template:
{{ macro:comments }}
Moderation & Security
Approved editors and administrators can moderate comments in two places: directly in the Comments card inside the page details view, or in the global Comments Moderation panel at /dashboard/comments. The moderation workflow supports approving (making public), hiding, or permanently deleting comments.
Spam Filter: To prevent unwanted spam comments, you can configure regular expressions in the admin area under Wiki Settings > Comment Settings. If the email address of a submitted comment matches one of these regular expressions, the comment is automatically flagged as spam, set to pending (hidden from visitors), and marked with a red Spam badge in the moderation views.