Modifying groups

To modify a forum group, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the ForumsManager object.
  2. Get the specified forum group.
    Get an instance of the forum group. For more information, read Querying groups.
  3. Modify the instance of the group.
    Update the values of the properties of the group.
  4. Save the changes.
    Save the changes to the manager.

Here is a code example:

public static void ModifyForumGroup(Guid groupId, string newDesription)
{
    ForumsManager forumsManager = ForumsManager.GetManager();
 
    ForumGroup forumGroup = forumsManager.GetGroup(groupId);
    forumGroup.Description = newDesription;
 
    forumsManager.SaveChanges();
}

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