Hello,
Actually you can create your own script for that using our API. Please see following example for creating a forum group, forum and post:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.Forums;
using CMS.CMSHelper;
public partial class CMSTemplates_CorporateSiteAspx_testDominikPForum : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// Create new forum group
ForumGroupInfo fgi = new ForumGroupInfo();
// Set properties
fgi.GroupDisplayName = "My group";
fgi.GroupName = "MyGroup";
fgi.GroupSiteID = CMSContext.CurrentSiteID;
// Insert into database
ForumGroupInfoProvider.SetForumGroupInfo(fgi);
// Create new forum
ForumInfo fi = new ForumInfo();
// Set properties
fi.ForumGroupID = fgi.GroupID;
fi.ForumName = "MyForum";
fi.ForumDisplayName = "My forum";
fi.ForumModerated = false;
fi.ForumSiteID = fgi.GroupSiteID;
fi.ForumOpen = true;
fi.ForumAccess = 0;
fi.ForumThreads = 0;
fi.ForumPosts = 0;
// Insert in database
ForumInfoProvider.SetForumInfo(fi);
// Create new post
ForumPostInfo fpi = new ForumPostInfo();
// Set properties
fpi.PostForumID = fi.ForumID;
fpi.PostSubject = "Some subject";
fpi.PostUserName = CMSContext.CurrentUser.UserName;
fpi.PostTime = DateTime.Now;
fpi.PostApproved = true;
// Update database
ForumPostInfoProvider.SetForumPostInfo(fpi);
}
}
Please note that you will need to import users as well (or use preexisting one) - in terms of each post needs to be connected with appropriate user.
Please more details about our API: http://devnet.kentico.com/downloads/kenticocms_api.zip
Best Regards
Ondrej Vasil