Article information
Article relates to
Sitefinity 3.2 Hotfix 1616
Created by
Penka Ivanova
Last modified by
Rebecca
To implement login for posting comments to blogs, you need to create your own control that extends the base class Telerik.Blogs.WebControls.BlogCommentsList.
This is how to do it:
1. In the CreateChildControls method of the BlogCommentsList extender, subscribe Submit button to the Click event and then add an event handler:
2. In the event handler, check whether the user is authenticated:
3. Modify the ~/Sitefinity/ControlTemplates/Blogs/ContentViewSingleItem.ascx template to use BlogCommentsListExtender instead of the old BlogCommentsList custom control.
See attachment for full example.
You can use the same approach to achieve the same functionality for the CommentsList control. Note that the extender there should inherit the Telerik.Cms.Engine.WebControls.CommentsList base class.