Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Navigation Controls

1 view
Skip to first unread message

Nick Marmolejo

unread,
Sep 18, 2003, 5:42:16 PM9/18/03
to
We want to create a custom page to create top level
sites. If we copy the microsoft scsignup.aspx page and
try to customize it at all it breaks. So we created our
own and used most of the basic html from scsignup for
formatting but is there a way to get the portal
navigation header controls. If we place our page in the
1033 folder it breaks and if we place it in the
layouts/myapp folder it works but no navigation bars are
displayed at the top of the page?

Anyone have an idea how to accomplish this?

Jason Noble (avivaconsulting.com)

unread,
Sep 20, 2003, 10:11:46 PM9/20/03
to
When creating a custom page be sure to inherit from
WebPartPage....Here is how you get the navigation on your
WebPartPage

1. Create references to required tag libraries
.
<%@ Register Tagprefix="SPSWC"
Namespace="Microsoft.SharePoint.Portal.WebControls"
Assembly="Microsoft.SharePoint.Portal, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="WebPartPages"
Namespace="Microsoft.SharePoint.WebPartPages"
Assembly="Microsoft.SharePoint, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint"
Namespace="Microsoft.SharePoint.WebControls"
Assembly="Microsoft.SharePoint, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

.
2. Apply Theme server control
<SHAREPOINT:THEME id="Theme1"
runat="server"></SHAREPOINT:THEME>
.
3. Add CSS Link server control
<SharePoint:CssLink
DefaultUrl="/_layouts/1033/styles/ows.css" runat="server"
ID="Csslink2" />
.
4. Add CSS Link server control
<SharePoint:CssLink
DefaultUrl="/_layouts/1033/styles/ows.css" runat="server"
ID="Csslink2" />
.
5. Add client-side script links
<script src="_layouts/1033/owsbrows.js"></script>
<script src="_layouts/1033/ows.js"></script>
.
6. Create table and add navigation server controls
<TABLE class="ms-main" CELLPADDING="0" CELLSPACING="0"
BORDER="0" WIDTH="100%" HEIGHT="100%">
<!-- Banner -->
<TR valign="top">
<TD COLSPAN="3" WIDTH="100%">
<!--Top bar-->
<table class="ms-bannerframe" border="0" cellspacing="0"
cellpadding="0" width="100%">
<tr>
<td nowrap valign="middle"><img ID="onetidHeadbnnr0"
alt="Logo" src="/_layouts/images/logo.gif"></td>
<td class="ms-banner" width="99%" nowrap ID="HBN100"
valign="middle">
<!--webbot Bot="Navigation" startspan-->
<SharePoint:Navigation LinkBarId="1002" runat="server"
ID="Navigation1" />
</td>
<td class="ms-banner">&nbsp;&nbsp;</td>
<td nowrap class="ms-banner" style="PADDING-RIGHT: 7px">
<SharePoint:PortalConnection runat="server"
ID="Portalconnection1" />
</td>
</tr>
</table>
</TD>
</TR>
</TABLE>

>.
>

0 new messages