Modify forums

To modify a forum, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the ForumsManager object.
  2. Get the specified forum.
    Get an instance of the forum. For more information, read For developers: Query forums.
  3. Modify the instance of the forum.
    Update the values of the properties of the forum.
  4. Save the changes.
    Save the changes to the manager.

Here is a code example:

C#
using System;
using Telerik.Sitefinity.Forums;
using Telerik.Sitefinity.Forums.Model;

namespace SitefinityWebApp
{
    public class ModifyForums_ModifyForumGroup
    {
        public static void ModifyForumGroup(Guid groupId, string newDesription)
        {
            ForumsManager forumsManager = ForumsManager.GetManager();

            ForumGroup forumGroup = forumsManager.GetGroup(groupId);
            forumGroup.Description = newDesription;

            forumsManager.SaveChanges();
        }
    }
}
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.
New to Sitefinity?