Skip to content

Commit

Permalink
Make Default Module Action Menu Configurable (#2804)
Browse files Browse the repository at this point in the history
* Make module action menu configurable via new Portal Setting

* Add script to setup default action menu in database. Ignore changes to Solution Info due to build scripts changing values locally.

* Update 09.04.00.SqlDataProvider

Add missing objectQualifier and databaseOwner.

* Remove database script

* Remove SolutionInfo.cs Ignore
  • Loading branch information
mikesmeltzer authored and ohine committed May 21, 2019
1 parent 1ad0f42 commit 1c37984
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions DNN Platform/Library/Entities/Portals/PortalSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ private void BuildPortalSettings(int tabId, PortalInfo portal)
/// -----------------------------------------------------------------------------
public int DefaultModuleId { get; internal set; }

public string DefaultModuleActionMenu { get; internal set; }

public string DefaultPortalContainer { get; internal set; }

public string DefaultPortalSkin { get; internal set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ public virtual void LoadPortalSettings(PortalSettings portalSettings)
portalSettings.DefaultAdminSkin = settings.GetValueOrDefault("DefaultAdminSkin", Host.Host.DefaultAdminSkin);
portalSettings.DefaultIconLocation = settings.GetValueOrDefault("DefaultIconLocation", "icons/sigma");
portalSettings.DefaultModuleId = settings.GetValueOrDefault("defaultmoduleid", Null.NullInteger);
portalSettings.DefaultModuleActionMenu = settings.GetValueOrDefault("DefaultModuleActionMenu", "~/admin/Menus/ModuleActions/ModuleActions.ascx");
portalSettings.DefaultPortalContainer = settings.GetValueOrDefault("DefaultPortalContainer", Host.Host.DefaultPortalContainer);
portalSettings.DefaultPortalSkin = settings.GetValueOrDefault("DefaultPortalSkin", Host.Host.DefaultPortalSkin);
portalSettings.DefaultTabId = settings.GetValueOrDefault("defaulttabid", Null.NullInteger);
Expand Down
2 changes: 1 addition & 1 deletion DNN Platform/Library/UI/Containers/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private void ProcessModule()
if (InjectActionMenu && !ModuleHost.IsViewMode(ModuleConfiguration, PortalSettings) && Request.QueryString["dnnprintmode"] != "true")
{
JavaScript.RequestRegistration(CommonJs.DnnPlugins);
ContentPane.Controls.Add(LoadControl("~/admin/Menus/ModuleActions/ModuleActions.ascx"));
ContentPane.Controls.Add(LoadControl(PortalSettings.DefaultModuleActionMenu));

//register admin.css
ClientResourceManager.RegisterAdminStylesheet(Page, Globals.HostPath + "admin.css");
Expand Down

0 comments on commit 1c37984

Please sign in to comment.