Comments module
This section provides you with an overview of the Comments API in Sitefinity CMS and guides you through the common tasks when working with the Comments module.
In the examples in the following sections, News items are used as commented items. However, the code applies to the other content types as well.
For more information about news, see For developers: News.
This section contains
Create comments
Creating comments programmatically using the Comments API.
Query comments
Querying comments through the Comments API. Includes Querying a single comment, querying comments by blog post and querying all comments for news with status spam
Modify comments
Use this procedure to modify a comment through the comments API, to modify comments by comment key, or mark the status of a comment as spam, and to mark the status of a comment as published.
Delete comments
Use this procedure to delete comments programmatically using the comments API.
Work with threads
Use this procedure to create a thread, delete a thread, modify or query threads programmatically.
Work with groups
Use this procedure to create forum groups, query or delete groups programmatically.
Subscribe to published comments submitted for news items
The Sitefinity CMS API enables you to configure email subscription for comments published for all new items.
Subscribe to news items' comments that are awaiting approval
In a situation where comment approval is required, a moderator or an administration of the page needs to know when a new comment in status Awaiting approval is submitted. Thus, the moderator can check and verify that the comment complies with page policies and publish it.
Subscribe to comments of blog and its blog posts
You can follow a specific blog and be notified for every comment posted on any of the blog posts that are part of this blog. That is, you subscribe to the blog and get email notifications when a new comment is submitted on the blog and its blog posts.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.