If you have multiple sub-sites, and/or various projects or links, don’t you often wish you could just simply go to the specific site changing tabs instead of opening a separate browser window and entering the URL? Navigators allow you to add tabs to your pages, and from those pages, you’re able to easily get back to where you were. And master pages provide the look and feel that you want for all of the pages in your site. By changing the styles or content of the master page, you can quickly customize the appearance of an entire site and use it for other pages.
Example: The Community Central site has built-in tabs. You want to add a link to a new “Workgroup” site. You want to be able to navigate from the “Workgroup” site back to the Community Central Site via a tab.
Note: Similar information can be found here: http://store.bamboosolutions.com/KB/article.aspx?id=12891. It’s also attached to this post with the custom master page v4_custom.master that you’re invited to download and use.
This blog provides the steps on how to add tab strips to the master page.
- How to Add Navigator Tab Strip Web Part
- Adding Navigator Tab Strips to the Master Page
- Customizing the Tab Strips on the Master Page
- For more information about Navigators, please read the online documentation.
How to Add a Navigator Tab Strip Web Part
- From the site where you want to have the Navigator tap strip, edit the page and select Add a Web Part. Select Bamboo Navigator Tab Strip:
- Edit the Web Part. Enter the relative path of where the Bamboo Navigators list resides. Select a skin. In this case, the PMCClassic skin is selected:
Next, add items to the Bamboo Navigators list. Note: Make sure to use relative path:
The tabs on the default.aspx page looks like this:
Adding Navigators Tab Strips to the Master Page
- In SharePoint Designer, open the site whose master page you want to modify. From the default.aspx page, right-click and select Edit File in Advanced Mode:
- At the top of the page, copy the register code of the Web Part. Note: You can also paste it to Notepad, and copy later into the master page.
- Copy the Div line for the tabs. Put it above the “SharePoint:DelegateControl…”. Note: You can paste it to Notepad to copy later into the master page.
- Make a copy of the v4.master. Check out the v4.master page and select Edit File in Advanced Mode. Copy the code for “register” and “div” to the v4.master. Save and Check In. Note: You can also download the attached v4.master file as your template master page for SharePoint 2010.
You will see this message:
Make sure to select the updated v4.master page as the default master page and custom master page:
From the browser, go back to the site and you should see the tab strip on the right-hand side of the page:
Customizing the Tab Strips on the Master Page
Note that after you have modified the master page, the tabs do not display fully on the page. The top gets cut off. In order to fix this, it’s necessary to add an additional CSS stylesheet.
- From SharePoint Designer, check out the v4.master page and select Edit File in Advanced Mode. Add the tags for the CSS stylesheet as follows:
Note: Add the lines right below the “SharePoint:SPHelpPageComponent…”
You should see the site adjusted like this:
You can also use the PMC Classic skin adding the CSS stylesheet tags as follows:
It will look like this:
You have now customized your site with the Navigators tabs to allow you and your users to easily get to the other sites. Note: If you are using these steps to add tabs for the PM Central master page, please make sure to use the instructions in the Customization PM Central where you only modify the nested master page only. You can also delete the Navigator TabStrip in the middle of your website selecting Delete Web Part.
- SharePoint Foundation 2010 and SharePoint Server 2010
- Navigators for SharePoint 2010
- SharePoint Master Pages
- SharePoint Designer 2010