Built-In Discussion System: Add Comments to Any Page

AjaxCMS now includes a native discussion system that brings threaded comments to your static site - no third-party services required. Add interactive discussions while maintaining the simplicity and security of a file-based CMS.

{{i | discussion-screenshot => style="width: 100%; margin: 20px 0;"}}

Simple Integration

Adding discussions to any page is effortless - just include the {{discussion}} helper:

<h1>My Blog Post</h1>
<p>Your content here...</p>

{{discussion}}

That's it! The discussion section appears automatically with a comment form and threaded reply system.

Key Features

Threaded Conversations:

Zero Configuration:

Security Built-In:

Automatic Timestamps:

How It Works

Backend (server.js):

Frontend (js/ajaxcms.js):

Data Storage:

{
  "discussions": [
    {
      "id": "unique-id",
      "parentId": null,
      "timestamp": "2025-11-20T17:00:00.000Z",
      "ip": "127.0.0.1",
      "author": "User Name",
      "content": "Comment text"
    }
  ],
  "metadata": {
    "created": "2025-11-20T17:00:00.000Z",
    "lastModified": "2025-11-20T17:00:00.000Z"
  }
}

Styling and Appearance

{{i | discussion-form => style="width: 50%; float: right; margin: 0 0 20px 20px;"}}

Professional Design:

Comment Cards:

Forms:

All styling is included in index.html (lines 249-453) and can be customized per-site.

Use Cases

Perfect for:

Advantages Over Third-Party Solutions

Privacy & Control:

Performance:

Simplicity:

Reliability:

Technical Implementation

The discussion system demonstrates AjaxCMS's ability to add dynamic features while maintaining its static-file philosophy:

No database. No complex backend. Just JSON files and clean JavaScript.

Limitations

Current limitations (by design):

These limitations keep the system simple, secure, and maintainable. For advanced features, consider integrating third-party services or extending the backend.

Future Possibilities

The discussion system provides a foundation for:

The simple JSON format makes these enhancements straightforward to implement.


The discussion system brings community engagement to AjaxCMS while preserving its core values: simplicity, security, and file-based storage. No external dependencies, no complicated setup, no compromise on principles.

Try it on your pages today with {{discussion}}!