From e0d055836a26f3eb6891afe093ecf94ccd12bf1f Mon Sep 17 00:00:00 2001 From: Paul Calderon Date: Fri, 24 May 2024 06:13:28 -0500 Subject: [PATCH] Add module id information --- .../admin/Menus/ModuleActions/ModuleActions.js | 2 +- .../App_LocalResources/ModuleSettings.ascx.resx | 8 +++++++- .../Website/admin/Modules/Modulesettings.ascx | 4 ++++ .../Website/admin/Modules/Modulesettings.ascx.cs | 1 + .../admin/Modules/Modulesettings.ascx.designer.cs | 12 ++++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/DNN Platform/Website/admin/Menus/ModuleActions/ModuleActions.js b/DNN Platform/Website/admin/Menus/ModuleActions/ModuleActions.js index 7174a52d268..789b7c79299 100644 --- a/DNN Platform/Website/admin/Menus/ModuleActions/ModuleActions.js +++ b/DNN Platform/Website/admin/Menus/ModuleActions/ModuleActions.js @@ -313,7 +313,7 @@ if (!rootText || rootText.length == 0) { return; } - root.append("
  • " + rootText + "
    "); + root.append("
  • " + moduleId + ":" + rootText + "
    "); } function buildQuickSettings(root, rootText, rootClass, rootIcon) { diff --git a/DNN Platform/Website/admin/Modules/App_LocalResources/ModuleSettings.ascx.resx b/DNN Platform/Website/admin/Modules/App_LocalResources/ModuleSettings.ascx.resx index f5e64f2e75f..21d143cf16a 100644 --- a/DNN Platform/Website/admin/Modules/App_LocalResources/ModuleSettings.ascx.resx +++ b/DNN Platform/Website/admin/Modules/App_LocalResources/ModuleSettings.ascx.resx @@ -1,6 +1,6 @@  - + @@ -400,4 +400,10 @@ The new value of the moniker already exists; it must be unique in the portal. + + Displays the id of the module. + + + Module Id + diff --git a/DNN Platform/Website/admin/Modules/Modulesettings.ascx b/DNN Platform/Website/admin/Modules/Modulesettings.ascx index 0cd5548b1bd..7f7c7cc0cec 100644 --- a/DNN Platform/Website/admin/Modules/Modulesettings.ascx +++ b/DNN Platform/Website/admin/Modules/Modulesettings.ascx @@ -23,6 +23,10 @@

    <%=LocalizeString("GeneralDetails")%>

    +
    + + +
    diff --git a/DNN Platform/Website/admin/Modules/Modulesettings.ascx.cs b/DNN Platform/Website/admin/Modules/Modulesettings.ascx.cs index b1412c351fa..581314acea4 100644 --- a/DNN Platform/Website/admin/Modules/Modulesettings.ascx.cs +++ b/DNN Platform/Website/admin/Modules/Modulesettings.ascx.cs @@ -612,6 +612,7 @@ private void BindData() this.dgPermissions.InheritViewPermissionsFromTab = this.Module.InheritViewPermissions; } + this.ltModuleId.Text = this.module.ModuleID.ToString(); this.txtFriendlyName.Text = this.Module.DesktopModule.FriendlyName; this.txtTitle.Text = this.Module.ModuleTitle; this.ctlIcon.Url = this.Module.IconFile; diff --git a/DNN Platform/Website/admin/Modules/Modulesettings.ascx.designer.cs b/DNN Platform/Website/admin/Modules/Modulesettings.ascx.designer.cs index be31780df5b..9904f2d8efe 100644 --- a/DNN Platform/Website/admin/Modules/Modulesettings.ascx.designer.cs +++ b/DNN Platform/Website/admin/Modules/Modulesettings.ascx.designer.cs @@ -27,6 +27,18 @@ public partial class ModuleSettingsPage { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.HyperLink hlSpecificSettings; + /// plModuleId control. + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::DotNetNuke.UI.UserControls.LabelControl plModuleId; + /// ltModuleId control. + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal ltModuleId; /// cultureRow control. /// /// Auto-generated field.