I am writing a module that will change the tab orders. I can update the tab with the new parent ID, but I can't get the tab orders to work.
For example, I have the following TabIDs in order: 55,56,57,58 and I set tab 58's parent = 55 using the UpdateTab method on the tab controller. The menu shows eveerything in the right place. But, when you look at the admin->pages module, I might get something like 55,56,58,57 instead of 55,58,56,57
I tried looking at what the admin/managetabs control does, but it just seems to run the UpdateTab method and viola it works.
Any thoughts? Right now I am updating the orders of the tabs directly in the DB and that works, but somehow I think I am missing something.
Edit:
Here is some sample code:
Dim objTabs As New TabController
Dim objTab As DotNetNuke.Entities.Tabs.TabInfo
objTab = objTabs.GetTab(585, PortalId, False)
objTab.ParentId = 650
objTabs.UpdateTab(objTab)
After this runs, Tab 585 has the correct parent and shows up in the right place on the menu. However, its level and order are not changed and so in the Admin->pages listings it shows up in the wrong place.