Monday, August 13, 2012

Update DesktopModule Category

The code below will add a new category to dotnetnuke module category list.
 ' Update module category
Dim desktopModule As DesktopModuleInfo = DesktopModuleController.GetDesktopModuleByModuleName("DNNSEO", Null.NullInteger)

DesktopModuleController.AddModuleCategory("Vivoware")

desktopModule.Category = "Vivoware"

DesktopModuleController.SaveDesktopModule(desktopModule, False, False)
For some reason I had to edit the desktop module, set the category and save for it to be visible in the list of modules when the category I created is selected. Screenshoot.
HTH



No comments:

Post a Comment