HI
I have a module in wich generate a lot of tabs. The tabs have a template tab in wich it copies all modules from it, into the new tabs. This worked fine on earlier versions of DNN, but this does not work anymore on DNN 6.1
Here is my code, I think it is the CopyTab method that does not work anymore.
****************************
TabController controller = new TabController();
int tabId;
TabInfo tab = new TabInfo();
tab.TabName = publishItem.Name;
tab.PortalID = publishItem.PortalID;
tab.TabName = publishItem.Name;
tab.Title = publishItem.Name;
tab.Description = publishItem.Name;
tab.IsVisible = true;
tab.IsDeleted = false;
tab.IsSuperTab = false;
tab.DisableLink = false;
tab.IconFile = string.Empty;
tab.Url = string.Empty;
tab.TabPermissions.Clear();
foreach(TabPermissionInfo info in permissions)
{
tab.TabPermissions.Add(info, false);
}
tab.StartDate = (DateTime)itemMetaData.StarDate;
tab.EndDate = (DateTime)itemMetaData.EndDate;
if (parentTabID != null)
tab.ParentId = (int)parentTabID;
tabId = controller.AddTab(tab);
// Here the problem lies, before, this method would copy all modules from the template page into the new page.
controller.CopyTab(publishItem.PortalID, publishItem.TemplatePageID, tabId, false);
AddHTMLModuleContent(tabId, htmlModuleID, publishItem, imageMappings, catalogMappings);
**************************
Best regards
Vidar