showing of Account Menu updated
This commit is contained in:
parent
91b4d4478b
commit
e6a7d222d5
4 changed files with 33 additions and 4 deletions
|
@ -58,6 +58,7 @@ namespace WebsitePanel.WebPortal
|
|||
public const string SKINS_FOLDER = "App_Skins";
|
||||
public const string CONTAINERS_FOLDER = "App_Containers";
|
||||
public const string CONTENT_PANE_NAME = "ContentPane";
|
||||
public const string LEFT_PANE_NAME = "LeftPane";
|
||||
public const string MODULE_TITLE_CONTROL_ID = "lblModuleTitle";
|
||||
public const string MODULE_ICON_CONTROL_ID = "imgModuleIcon";
|
||||
public const string DESKTOP_MODULES_FOLDER = "DesktopModules";
|
||||
|
@ -234,10 +235,24 @@ namespace WebsitePanel.WebPortal
|
|||
if (ctrlPane != null)
|
||||
{
|
||||
// add "edit" module
|
||||
if(PortalConfiguration.Site.Modules.ContainsKey(ModuleID))
|
||||
if (PortalConfiguration.Site.Modules.ContainsKey(ModuleID))
|
||||
AddModuleToContentPane(ctrlPane, PortalConfiguration.Site.Modules[ModuleID],
|
||||
ModuleControlID, editMode);
|
||||
}
|
||||
// find LeftPane
|
||||
ctrlPane = ctrlSkin.FindControl(LEFT_PANE_NAME);
|
||||
if (ctrlPane != null)
|
||||
{
|
||||
ContentPane pane = page.ContentPanes[LEFT_PANE_NAME];
|
||||
foreach (PageModule module in pane.Modules)
|
||||
{
|
||||
if (IsAccessibleToUser(Context, module.ViewRoles))
|
||||
{
|
||||
// add module
|
||||
AddModuleToContentPane(ctrlPane, module, "", false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue