- Most functionality should work from a document libray
- Allow for different screen "resolutions"
- Keep it fairly simple but allow for easy updating
There are more points but these are some of the major ones. Here are a few screenshots of what it looks like so far. There are some things I have not yet changed:
So there are the screenshots. Let's get to the meat of it all shall we??
My full solution is actually built as a full .WSP solution in Visual Studio, but basically what I have done is the following:
- Modified the Master Page for the layout I wanted.
- Created several stylesheets representing different screen sizes.
- Added the style css files to the master page gallery including a subfolder for images.
- Created a javascript file to change the stylesheet based on screen size.
- Created a "Scripts" document library for the javascript files.
- Uploaded all the files to the libraries
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <%@ Master Language="C#" Debug="true" %>
- <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Import Namespace="Microsoft.SharePoint" %>
- <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
- <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Register TagPrefix="wssuc" TagName="Welcome" Src="~/_controltemplates/Welcome.ascx" %>
- <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" Src="~/_controltemplates/DesignModeConsole.ascx" %>
- <%@ Register TagPrefix="asp" Namespace="System.Web.UI.DataVisualization.Charting" Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
- <%@ Import Namespace="System.Web.UI.DataVisualization.Charting" %>
- <html dir="<%$Resources:wss,multipages_direction_dir_value%>" runat="server" xmlns:o="urn:schemas-microsoft-com:office:office">
- <head runat="server">
- <meta name="GENERATOR" content="Microsoft SharePoint"/>
- <meta name="progid" content="SharePoint.WebPartPage.Document"/>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta http-equiv="Expires" content="0"/>
- <SharePoint:RobotsMetaTag ID="RobotsMetaTag1" runat="server" />
- <title id="onetidTitle">
- <asp:ContentPlaceHolder ID="PlaceHolderPageTitle" runat="server" />
- </title>
- <SharePoint:CssLink runat="server" />
- <SharePoint:Theme runat="server" />
- <SharePoint:ScriptLink language="javascript" name="core.js" Defer="true" runat="server" />
- <SharePoint:CustomJSUrl runat="server"/>
- <SharePoint:SoapDiscoveryLink runat="server" />
- <SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead" AllowMultipleControls="true" />
- <asp:ContentPlaceHolder ID="PlaceHolderAdditionalPageHead" runat="server"></asp:ContentPlaceHolder>
- <link rel="stylesheet" type="text/css" title="default" href="mcurves.css" />
- <link rel="alternate stylesheet" type="text/css" title="mcurves1024" href="mcurves1024.css" />
- <link rel="alternate stylesheet" type="text/css" title="mcurves1200" href="mcurves1200.css" />
- <link rel="alternate stylesheet" type="text/css" title="mcurves1440" href="mcurves1440.css" />
- <link rel="alternate stylesheet" type="text/css" title="mcurves1600" href="mcurves1600.css" />
- </head>
- <body onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();" >
- <form id="Form1" runat="server" onsubmit="return _spFormOnSubmitWrapper();">
- <WebPartPages:SPWebPartManager ID="m" runat="Server" />
- <div id="search">
- <table>
- <tr>
- <td>
- <input type="text" name="s" id="search-text" value="" />
- </td>
- <td>
- <a target='_self' href='javascript:' onClick="javascript:SearchIt();javascript:return false;" title="Go Search" ID=onetIDGoSearch><img border='0' src="/_layouts/images/gosearch.gif" alt="Go Search"></a>
- </td>
- </tr>
- </table>
- </div>
- <div id="wrapper">
- <div id="header">
- <div id="logo">
- <h1><a href="javascript:loadpage('/default.aspx');">MCurves</a></h1>
- <p> design by Daniel Walker</a></p>
- </div>
- </div>
- <!-- end #header -->
- <div id="menu" class="menu">
- </div>
- <!-- end #menu -->
- <div id="page">
- <div id="page-bgtop">
- <div id="page-bgbtm">
- <div id="content">
- <asp:ContentPlaceHolder id="PlaceHolderScriptTop" runat="server">
- <script language="javascript" type="text/javascript" src="http://wss_sa/tools/mcurves/Scripts/mcurves_script.js"></script>
- </asp:ContentPlaceHolder>
- <asp:ContentPlaceHolder id="PlaceHolderMain" runat="server"/>
- <div style="clear: both;"> </div>
- </div>
- <!-- end #content -->
- <div id="sidebar">
- <div id="welcome">
- <wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false"></wssuc:Welcome>
- </div>
- <div id="sidemenu">
- </div>
- </div>
- <!-- end #sidebar -->
- <div style="clear: both;"> </div>
- </div>
- </div>
- </div>
- <!-- end #page -->
- </div>
- <div id="footer">
- <p>FOR OFFICIAL USE ONLY.</p>
- </div>
- <asp:ContentPlaceHolder ID="WSSDesignConsole" runat="server">
- <wssuc:DesignModeConsole id="IdDesignModeConsole" runat="server" />
- </asp:ContentPlaceHolder>
- <asp:ContentPlaceHolder ID="SPNavigation" runat="server">
- <SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="PublishingConsole"
- PrefixHtml="<tr><td colspan="4" id="mpdmconsole" class="ms-consolemptablerow">"
- SuffixHtml="</td></tr>"
- >
- </SharePoint:DelegateControl>
- </asp:ContentPlaceHolder>
- <div id='printalert' style='width: 100%; height: 100%; border: #99ccff 2px solid;font: bold 8pt tahoma; display:none;'>
- <table style='width: 100%; height: 100%;' border="0" cellpadding="0" cellspacing="0">
- <tr><td align='center'>This display is not formatted for printing and your prints may not look as expected.</td></tr>
- <tr><td align='center'>If you need to print, you should use Snagit to capture what you need.</td></tr>
- </table>
- </div>
- <div style="display:none">
- <SharePoint:SiteActions runat="server" AccessKey="<%$Resources:wss,tb_SiteActions_AK%>" id="SiteActionsMenuMain"
- PrefixHtml="<div><div>"
- SuffixHtml="</div></div>"
- MenuNotVisibleHtml="&nbsp;">
- <CustomTemplate>
- <SharePoint:FeatureMenuTemplate ID="FeatureMenuTemplate1" runat="server"
- FeatureScope="Site"
- Location="Microsoft.SharePoint.StandardMenu"
- GroupId="SiteActions"
- UseShortId="true"
- >
- <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Create"
- Text="<%$Resources:wss,viewlsts_pagetitle_create%>"
- Description="<%$Resources:wss,siteactions_createdescription%>"
- ImageUrl="/_layouts/images/Actionscreate.gif"
- MenuGroupId="100"
- Sequence="100"
- UseShortId="true"
- ClientOnClickNavigateUrl="~site/_layouts/create.aspx"
- PermissionsString="ManageLists, ManageSubwebs"
- PermissionMode="Any" />
- <SharePoint:MenuItemTemplate runat="server" id="MenuItem_EditPage"
- Text="<%$Resources:wss,siteactions_editpage%>"
- Description="<%$Resources:wss,siteactions_editpagedescription%>"
- ImageUrl="/_layouts/images/ActionsEditPage.gif"
- MenuGroupId="100"
- Sequence="200"
- ClientOnClickNavigateUrl="javascript:MSOLayout_ChangeLayoutMode(false);"
- />
- <SharePoint:MenuItemTemplate runat="server" id="MenuItem_Settings"
- Text="<%$Resources:wss,settings_pagetitle%>"
- Description="<%$Resources:wss,siteactions_sitesettingsdescription%>"
- ImageUrl="/_layouts/images/ActionsSettings.gif"
- MenuGroupId="100"
- Sequence="300"
- UseShortId="true"
- ClientOnClickNavigateUrl="~site/_layouts/settings.aspx"
- PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
- PermissionMode="Any" />
- <SharePoint:MenuItemTemplate runat="server" id="MenuItem_AllContent"
- Text="All Site Content"
- Description="All Site Content"
- ImageUrl="/_layouts/images/ActionsSettings.gif"
- MenuGroupId="100"
- Sequence="400"
- UseShortId="true"
- ClientOnClickNavigateUrl="~site/_layouts/viewlsts.aspx"
- PermissionsString="EnumeratePermissions,ManageWeb,ManageSubwebs,AddAndCustomizePages,ApplyThemeAndBorder,ManageAlerts,ManageLists,ViewUsageData"
- PermissionMode="All" />
- </SharePoint:FeatureMenuTemplate>
- </CustomTemplate>
- </SharePoint:SiteActions>
- </div>
- <asp:ContentPlaceHolder ID="PlaceHolderFormDigest" runat="server">
- <SharePoint:FormDigest ID="FormDigest1" runat="server" />
- </asp:ContentPlaceHolder>
- <input type="text" name="__spDummyText1" style="display: none;" size="1" />
- <input type="text" name="__spDummyText2" style="display: none;" size="1" />
- </form>
- <!--- --- --- Leave the following placeholders beneath all page content --- --- --->
- <asp:Panel ID="Panel1" visible="false" runat="server">
- <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarDataSource" runat="server" />
- <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarTop" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderCalendarNavigator" runat="server" />
- <asp:ContentPlaceHolder id="PlaceHolderLeftActions" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderUtilityContent" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderBodyAreaClass" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderTitleAreaClass" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderPageDescription" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server"/>
- <asp:ContentPlaceHolder ID="PlaceHolderHorizontalNav" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderTitleLeftBorder" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderTitleRightMargin" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderTitleAreaSeparator" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderNavSpacer" runat="server"><IMG SRC="/_layouts/images/blank.gif" width=138 height=1 alt=""></asp:ContentPlaceholder>
- <asp:ContentPlaceHolder id="PlaceHolderLeftNavBarBorder" runat="server"></asp:ContentPlaceHolder>
- <asp:ContentPlaceHolder id="PlaceHolderBodyLeftBorder" runat="server"/>
- <asp:ContentPlaceHolder id="PlaceHolderBodyRightMargin" runat="server"/>
- <asp:ContentPlaceHolder ID="PlaceHolderPageImage" runat="server" />
- <asp:ContentPlaceHolder ID="PlaceHolderTitleBreadcrumb" runat="server"/>
- <asp:ContentPlaceHolder ID="PlaceHolderPageTitleInTitleArea" runat="server" />
- <asp:ContentPlaceHolder ID="PlaceHolderMiniConsole" runat="server" />
- <asp:ContentPlaceHolder ID="PlaceHolderSiteName" runat="server"/>
- </asp:Panel>
- <!--- --- --- End of Hidden Placeholders --- --- --->
- </body>
- </html>
So there is the Master Page. It is very different than a standard WSS master page, but it does work! In my next post, I will go over the stylesheet code used to make this.
No comments:
Post a Comment