|
|
|
|
|
|
Customizing the Quick Launch in a WSS Team Site
Editor's Note: The rest of Paul's series, and more Microsoft SharePoint content, can be found at: www.intranetjournal.com/sharepoint/.
Team sites in Windows SharePoint Services (WSS) contain a special navigation feature called the Quick Launch. The Quick Launch is on the home page and provides links to the Document Libraries, Lists, Picture Galleries, Discussions and Surveys. One of the benefits of the Quick Launch is that when new items (libraries, lists, etc.) are added to the site, the creator can choose to include a link to the item on the Quick Launch.
The Quick Launch is composed of several components, called Link Bars. There is one link bar for each of the categories: Document Libraries, Lists, Picture Galleries, Discussions, and Surveys. Using FrontPage 2003, a Web designer can view these link bars while editing the home page. Additionally, the individual link bars can be added to any page in the site. (Link bars can also be created manually.)
This month, I will present a solution to provide this automatic link functionality for documents in a Document Library.
Built-In Quick Launch Functionality
Before continuing, I want to review the functionality of the built-in Quick Launch. Experienced SharePoint users/administrators may want to skip to the next section.
On the home page of Team sites in Windows SharePoint Services (WSS), the left side of the page has a series of links titled Quick Launch. The links are grouped by category and they point to the default view of the library/list.
When new libraries,lists,etc. are added to the site, the create page function allows the creator to include the list on the Quick Launch. (This setting can be changed later if desired.) For frequently accessed libraries and lists, this feature is very useful. Be aware, however, that links in the Quick Lauch are displayed in the order they are added. Re-arranging the links requires FrontPage 2003.
One common request for the Quick Launch is the ability to link to individual items in a document library rather than linking to the default view of the library. While this is not part of the built-in feature set, it is easily available via a custom web part.
Document Library Quick Launch
As I discussed in my previous article, I have created a custom Web Part that will display links to items stored in a document library. While creating this part, I felt it would be helpful to allow site authors to exclude documents and to allow specify the order of the links. In addition, the part would only be useful if it dynamically rendered based on the contents of the document library.
Download and Install the Web Part
If you are familiar with Web Part development, you can compile the source and make the resulting Web Part control (.dll file) available in your usual manner.
Configure Document Library
Perform the following to add this column to your document library:
If the value of this column is not blank and is greater than zero, the document will be displayed in the Document Library Quick Launch.
Add the Web Part to the Page and Set Its Properties
How It Works
At the risk of getting too technical, I want to point out a few items about the GetDocumentLinks routine creates this list.
The item to note in this code is that the document library is actually a list, and is retrieved using the List property of the site object. The List object is then tested to ensure it is a document library and that it contains documents, not XML (InfoPath) forms.
If you would like additional information about the Web Part, post an comment to the Intranet Journal forum or contact me thru my Weblog.
About this series
About the author
|
Intranet Journal's Tutorials |
|
Managing Editor |