showing of Account Menu updated
This commit is contained in:
parent
91b4d4478b
commit
e6a7d222d5
4 changed files with 33 additions and 4 deletions
|
@ -127,6 +127,9 @@
|
||||||
<!-- Space Home Page -->
|
<!-- Space Home Page -->
|
||||||
<Page name="SpaceHome" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True" skin="Browse3.ascx">
|
<Page name="SpaceHome" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True" skin="Browse3.ascx">
|
||||||
<Content id="LeftPane">
|
<Content id="LeftPane">
|
||||||
|
<Module moduleDefinitionID="UserAccountMenu" title="UserMenu" container="Clear.ascx">
|
||||||
|
<ModuleData ref="UserMenu"/>
|
||||||
|
</Module>
|
||||||
<Module moduleDefinitionID="SpaceMenu" title="SpaceMenu" container="Clear.ascx">
|
<Module moduleDefinitionID="SpaceMenu" title="SpaceMenu" container="Clear.ascx">
|
||||||
<ModuleData ref="SpaceMenu"/>
|
<ModuleData ref="SpaceMenu"/>
|
||||||
</Module>
|
</Module>
|
||||||
|
@ -192,6 +195,9 @@
|
||||||
|
|
||||||
<Page name="SpaceWebSites" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True">
|
<Page name="SpaceWebSites" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True">
|
||||||
<Content id="LeftPane">
|
<Content id="LeftPane">
|
||||||
|
<Module moduleDefinitionID="UserAccountMenu" title="UserMenu" container="Clear.ascx">
|
||||||
|
<ModuleData ref="UserMenu"/>
|
||||||
|
</Module>
|
||||||
<Module moduleDefinitionID="SpaceMenu" title="SpaceMenu" container="Clear.ascx">
|
<Module moduleDefinitionID="SpaceMenu" title="SpaceMenu" container="Clear.ascx">
|
||||||
<ModuleData ref="SpaceMenu"/>
|
<ModuleData ref="SpaceMenu"/>
|
||||||
</Module>
|
</Module>
|
||||||
|
@ -510,6 +516,11 @@
|
||||||
</Page>
|
</Page>
|
||||||
|
|
||||||
<Page name="SpaceExchangeServer" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True" skin="Exchange.ascx" adminskin="Exchange.ascx">
|
<Page name="SpaceExchangeServer" roles="Administrator,Reseller,PlatformCSR,ResellerCSR,PlatformHelpdesk,ResellerHelpdesk,User" hidden="True" skin="Exchange.ascx" adminskin="Exchange.ascx">
|
||||||
|
<Content id="LeftPane">
|
||||||
|
<Module moduleDefinitionID="UserAccountMenu" title="UserMenu" container="Clear.ascx">
|
||||||
|
<ModuleData ref="UserMenu"/>
|
||||||
|
</Module>
|
||||||
|
</Content>
|
||||||
<Content id="ContentPane">
|
<Content id="ContentPane">
|
||||||
<Module moduleDefinitionID="ExchangeServer" title="ExchangeServer" icon="" container="Exchange.ascx" admincontainer="Exchange.ascx" readOnlyRoles="PlatformCSR,ResellerCSR"/>
|
<Module moduleDefinitionID="ExchangeServer" title="ExchangeServer" icon="" container="Exchange.ascx" admincontainer="Exchange.ascx" readOnlyRoles="PlatformCSR,ResellerCSR"/>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="TopMenu">
|
<div id="TopMenu">
|
||||||
<wsp:TopMenu ID="menu" runat="server" />
|
<wsp:TopMenu ID="leftMenu" runat="server" Align="left" />
|
||||||
|
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
||||||
|
<wsp:TopMenu ID="rightMenu" runat="server" Align="right" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Top">
|
<div id="Top">
|
||||||
|
|
|
@ -33,9 +33,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="TopMenu">
|
<div id="TopMenu">
|
||||||
<wsp:TopMenu ID="menu" runat="server" />
|
<wsp:TopMenu ID="leftMenu" runat="server" Align="left" />
|
||||||
|
<asp:PlaceHolder ID="LeftPane" runat="server"></asp:PlaceHolder>
|
||||||
|
<wsp:TopMenu ID="rightMenu" runat="server" Align="right" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="Top">
|
<div id="Top">
|
||||||
<wsp:UserSpaceBreadcrumb ID="breadcrumb" runat="server"/>
|
<wsp:UserSpaceBreadcrumb ID="breadcrumb" runat="server"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -58,6 +58,7 @@ namespace WebsitePanel.WebPortal
|
||||||
public const string SKINS_FOLDER = "App_Skins";
|
public const string SKINS_FOLDER = "App_Skins";
|
||||||
public const string CONTAINERS_FOLDER = "App_Containers";
|
public const string CONTAINERS_FOLDER = "App_Containers";
|
||||||
public const string CONTENT_PANE_NAME = "ContentPane";
|
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_TITLE_CONTROL_ID = "lblModuleTitle";
|
||||||
public const string MODULE_ICON_CONTROL_ID = "imgModuleIcon";
|
public const string MODULE_ICON_CONTROL_ID = "imgModuleIcon";
|
||||||
public const string DESKTOP_MODULES_FOLDER = "DesktopModules";
|
public const string DESKTOP_MODULES_FOLDER = "DesktopModules";
|
||||||
|
@ -238,6 +239,20 @@ namespace WebsitePanel.WebPortal
|
||||||
AddModuleToContentPane(ctrlPane, PortalConfiguration.Site.Modules[ModuleID],
|
AddModuleToContentPane(ctrlPane, PortalConfiguration.Site.Modules[ModuleID],
|
||||||
ModuleControlID, editMode);
|
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