Restrict Global Navigation Settings on Subsites in MOSS 2007

When giving full access to a SharePoint 2007 site to a user, there are times where you would like them to have control over the site and navigation, but not the Global Navigation settings for their site.  A common occurrence is when the top / global navigation menu should be the same on all sites in a site collection, which can be changed via the navigation settings page of a sub site to break inheritance on the top navigation from the parent site.  To restrict the global navigation settings on sub-sites, it is possible to hide this component of the navigation settings page so that only the current site navigation can be modified by a site owner.

Restrict Global Navigation Settings on SharePoint sites.

Restrict Global Navigation Settings on SharePoint sites.

This is achieved by making a copy of the AreaNavigationSettings.aspx page and removing some of the elements used to display the Global Navigation, and setting the table containing form fields so that it is not displayed using CSS.  Removing the controls from the page can result in an error, which is why CSS is used instead to hide the controls.

The AreaNavigationSettings.apsx page in its original state is renamed to a different filename, which means that it is still accessible by manually entering the address of the page into the browser.  It can also be reinstated by removing the modified version of the page, and renaming the original file back to AreaNavigationSettings.apsx.

It is also a good idea to make the changes to a temporary copy of the page before renaming the original to something else, and the modified version to AreaNavigationSettings.apsx.

The process:

  • Make a copy of the AreaNavigationSettings.aspx page and rename it to AreaNavigationSettingsTest.aspx.  (usually found in: c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\TEMPLATES\LAYOUTS )
  • Open the “AreaNavigationSettingsTest.aspx” page using a text editor.
  • Remove the Title attribute used to display the heading for the Global Navigation section on the page:
 <wssuc:InputFormSection ID="globalNavSection" Title="<%....%>" runat="server">
  • Remove the <Template_Description> element from inside the <wssuc:InputFormSection ID=”globalNavSection” .. > element.
  • Inside the <Template_Control> element for the global navigation components, add the following inline style to the table containing the form controls:
style="display:none"
  • Once you are happy with the changes to the page (test in your browser), rename the original AreaNavigationSettings.aspx to something else, and the modified version to AreaNavigationSettings.aspx .

When you go to the Navigation settings for a site in the site collection, the Global Navigation section will be hidden from the page.  When modifying the navigation for the Root site in a site collection, you still have access to maintain the global navigation that appears on sub-sites.

For more detailed instructions and information, please see: Restrict Global Navigation Settings on Subsites.

 

Related posts:

  1. Restrict SharePoint Content based on Permissions
  2. SharePoint Designer (2007) – Run reports for all sites programmatically

Tags:

Comments are closed.