Working with comments

This section provides you with an overview of the Comments Module API in Sitefinity and guides you through the common tasks when working with comments.

Sitefinity allows you to create comments for all items that implement the ICommentable interface. All content items implementICommentable.

The section contains the following:

To manage comments through Native API, you must add the following namespaces to your class:

using Telerik.Sitefinity.GenericContent.Model;
using Telerik.Sitefinity.Modules.GenericContent;

To manage comments through Fluent API, you must add the following namespaces to your class:

using Telerik.Sitefinity;
using Telerik.Sitefinity.GenericContent.Model;

NOTE: In the following examples, news items will be used as commented items. However, the code applies to the other content types as well.

For more information about news, see News.

See Also

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK