Control panel pages
Modify or adding your own sections with pages in the control panel menu is all done in web.config.
The change is in the section "litium\foundation\controlPanelPages"; this section contained all default pages in the previous version, and you will configure your own pages with the following nodes.
<controlPanelPages>
<mySettings>
<!--
In this section you can add your own control panel pages, this will be shown in the 'My settings' node
-->
<controlPanelPage page="~/Site/Controlpanel/UserPage.aspx" icon="~/LitiumStudio/Images/icons_standard/notebook_preferences_16px.png" systemStringKey="UserPageSystemString"/>
</mySettings>
<systemSettings>
<!--
In this section you can add your own control panel pages, this will be shown in the 'System settings' node
Permission-attribute can have the following values: Account, Language, All, Undefined (Undefined is the same as no permission)
-->
<controlPanelPage page="~/Site/Controlpanel/SystemPage.aspx" icon="~/LitiumStudio/Images/icons_standard/businesspeople.png" systemStringKey="SystemPageSystemString" permission="Undefined"/>
</systemSettings>
<!--
Add your own node in control panel with sub-nodes for each controlPanelPage.
-->
<companyName systemStringKey="MyCompanyControlPanelKey">
<controlPanelPage page="~/Site/Controlpanel/MySpecialAdminPage.aspx" icon="~/LitiumStudio/Images/icons_standard/notebook_preferences_16px.png" systemStringKey="UserPageSystemString"/>
</companyName>
</controlPanelPages>
If your own control panel page should have the same layout as all default control panel pages, the master page ~/LitiumStudio/Framework/ControlPanel.master should be used. The master page has several areas to place content. Toolbar (LitiumStudioToolbar), Header (LitiumStudioContentHeading), FilterArea (LitiumStudioFilterArea) and Content (LitiumStudioContent).
When the filter area is used the FilterAreaSetting-control needs to be included to control how the filter area behaves.
<LS:FilterAreaSetting runat="server" FilterAreaState="Open" />
The example page above has the following code that can be used when you should build your own control panel page.
<%@ Page Title="Title" Language="C#" MasterPageFile="~/LitiumStudio/Framework/ControlPanel.master" %>
<asp:Content runat="server" ContentPlaceHolderID="LitiumStudioContentHeading">
Header
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="LitiumStudioContent">
Content
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="LitiumStudioFilterArea">
<LS:FilterAreaSetting runat="server" FilterAreaState="Open" />
Filter area
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="LitiumStudioToolbar">
Toolbar
</asp:Content>