Speed up widget development with Sitefinity MCP server. Learn more...

Work with groups

Create groups

To create a group: 

  1. Get an instance of the Comment Service by using the GetCommentsService method part of the SystemManager.
  2. Create an AuthorProxy.
    When creating comments information is required about the author of the new comment, for example a name, an email, and so on. Therefore, there is an  AuthorProxy class that implements the IAuthor interface.
  3. To create a group, you need to create a GroupProxy. The constructor requires as parameters a title, description, and an author.
  4. Create the group using the CreateGroup method as part of the comment service by passing the groupProxy as a parameter.
The following code creates a group:

Query groups

Choose any of the following options to retrieve groups:

  • Get a thread by groupKey:
  • Get all groups by specific criteria.
    You must use the GetGroups method part of the comments service:

    or

Delete groups

You can delete group using the DeleteGroup.
NEW TO SITEFINITY?

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 the Integration hub service 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 its 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.

Was this article helpful?

Next article

Comments events