MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Enabling/Customizing comments  (Mono Support )

Viewed 23544 time(s), 5 post(s) 11/16/2015 3:30:49 PMby Kezber
Kezber

Kezber

11/16/2015 3:30:49 PM

Hi,

The following was taken from an earlier thread:
</br>
</br>"In the current version, comments module can be used with blogs, wall notes and image gallery. The new version, due to be published this month, will enable you to add commenting functionality (same holds for tags and ratings) to other parts, including news. "

I wonder if this was implemented and how to enable commenting to other modules and whether I can enable commenting to a customized module.

Please accept my sincere regards.

This content has not been rated yet. 
215 Reputation 29 Total posts
mzilic

mzilic

11/16/2015 3:44:38 PM
Hi,

Comments can be added by default to inbuilt MonoX functionality as well as custom functionality (please note that some extra code is required for this). Basically what is required is to add the comments.ascx control to your custom page then set the ParentEntityId and the ParentEntityType properties.

ParentEntityId is the Id of the entity to which comments are "tied" to and the ParentEntityType is the type of the entity.

Inbuilt supported ParentEntityType types are:

/// <summary>
/// Entity type used in social networking modules that can be interfaced to multiple entities, like comments or files.
/// </summary>
public enum SnEntityType
{
    /// <summary>
    /// Indicates empty entity type.
    /// </summary>
    None = 0,
    /// <summary>
    /// Album entity type.
    /// </summary>
    Album = 1,
    /// <summary>
    /// Message entity type.
    /// </summary>
    Message = 2,
    /// <summary>
    /// Note entity type.
    /// </summary>
    Note = 3,
    /// <summary>
    /// Blog post entity type.
    /// </summary>
    BlogPost = 4,
    /// <summary>
    /// Custom entity type 1.
    /// </summary>
    Custom1 = 5,
    /// <summary>
    /// Custom entity type 2.
    /// </summary>
    Custom2 = 6,
    /// <summary>
    /// Custom entity type 3.
    /// </summary>
    Custom3 = 7,
    /// <summary>
    /// File entity type.
    /// </summary>
    File = 8,
    /// <summary>
    /// Discussion message entity type.
    /// </summary>
    DiscussionMessage = 9,
    /// <summary>
    /// Comment entity type.
    /// </summary>
    Comment = 10,
    /// <summary>
    /// Tag entity type.
    /// </summary>
    Tag = 11,
    /// <summary>
    /// Rating entity type.
    /// </summary>
    Rating = 12,
    /// <summary>
    /// Discussion board entity type.
    /// </summary>
    DiscussionBoard= 13,
    /// <summary>
    /// Discussion topic entity type.
    /// </summary>
    DiscussionTopic = 14,
    /// <summary>
    /// Document entity type.
    /// </summary>
    Document = 15,
    /// <summary>
    /// News item entity type.
    /// </summary>
    NewsItem = 16,
    /// <summary>
    /// List item entitytype.
    /// </summary>
    ListItem = 17,
    /// <summary>
    /// Blog entity type.
    /// </summary>
    Blog = 18,
    /// <summary>
    /// Portal subscriber entity type.
    /// </summary>
    Subscriber = 19,
    /// <summary>
    /// Application entity type.
    /// </summary>
    Application = 20,
    /// <summary>
    /// Calendar event entity type.
    /// </summary>
    CalendarEvent = 21,
    /// <summary>
    /// Group event entity type.
    /// </summary>
    Group = 22,
    /// <summary>
    /// User event entity type.
    /// </summary>
    User = 23,
    /// <summary>
    /// Campaign event entity type.
    /// </summary>
    Campaign = 24,
    /// <summary>
    /// News category event entity type.
    /// </summary>
    NewsCategory = 25,
    /// <summary>
    /// Newsletter event entity type.
    /// </summary>
    Newsletter = 26,
    /// <summary>
    /// Page event entity type.
    /// </summary>
    Page = 27,
    /// <summary>
    /// Poll event entity type.
    /// </summary>
    Poll = 28
}

Regards
This content has not been rated yet. 
2218 Reputation 300 Total posts
Kezber

Kezber

11/16/2015 3:47:22 PM

Hi,

Thank you very much for the prompt reply.

Have a nice day

This content has not been rated yet. 
215 Reputation 29 Total posts
Kezber

Kezber

11/17/2015 2:35:37 PM

Hi Again,

One more question; is it possible to enable commenting on all events on the news feed (/SocialNetworking/Dashboard.aspx) ? if so what steps do I need to in Events.ascx.cs?

Please accept my sincere regards

This content has not been rated yet. 
215 Reputation 29 Total posts
Kezber

Kezber

11/17/2015 2:57:18 PM

Nevermind I found the solution :)

Thanks

Rated 5.00, 1 vote(s). 
215 Reputation 29 Total posts