Skip to content Skip to sidebar Skip to footer

How Can I Import An Existing Dnn Module Into A New Module Without Copying The Existing Code?

I would like to create a new module which will have two dropdown menu's in the settings whereby it will get the moduleID of two other modules that is already installed on DNN. How

Solution 1:

Here you go. A snippet to get the Portal Modules.

var allModules = DesktopModuleController.GetPortalDesktopModules(PortalId);

foreach (var module in allModules)
{
    var moduleInfo = module.Value; //because allModules is a List<KeyValuePair>

    Label1.Text += moduleInfo.DesktopModuleID + " - " + moduleInfo.FriendlyName + "<br>";
}

Post a Comment for "How Can I Import An Existing Dnn Module Into A New Module Without Copying The Existing Code?"