SUBSCRIBE to SharePointPro Connections     Register today for your FREE "SharePointPro Connections UPDATE " eNewsletter

     

 

     
Skip Navigation Links.
Collapse SharePoint SharePoint
Expand SharePointPro Connections MagazineSharePointPro Connections Magazine
Collapse SharePointPro Connections Update SharePointPro Connections Update
SharePoint Service Applications
SharePoint Content Management
SharePoint Beta
SharePoint On the Job
SharePoint Shines at the Olympics, Plus Office Olympics Winners, and a New Magazine
Potential SharePoint Pitfalls
SharePoint Printing--And SharePoint Fun On the Road
Discoverability and SharePoint 2010
More SharePoint MVP Predictions for 2010
SharePoint in 2010: SharePoint MVPs Offer 2010 Predictions
SharePoint 2010 Lists and a Question
SharePoint: Garbage and Governance
SharePoint and Social Networking With a Purpose: Next Steps
SharePoint Updates and Prereqs
SharePoint 2010 and Social Networking
SharePoint and Office Betas Released!
MOSS 2007 and SharePoint 2010: Walking the line between past and future
SharePoint Update: "Current" and "Next Version" News
SharePoint 2010: What a Difference 3 Years Makes
SharePoint Wish List: Does SharePoint 2010 Deliver?
Top 4 Things Devs Can Do to Prepare for 2010
Move Over, Miley--And Vegas, Baby!
Fundamentals: Implementing a Web Application
Web Apps and Webinars
Hyper-V? Not Me! Thank the Heavens for VMware Workstation
News in Review: Cool Tools and Hot Topics in SharePoint Land
My SharePoint Summer Vacation
Will Hardware Be a Deployment Blocker for SharePoint 2010?
Bad Practice #1: Not Using Solutions to Deploy Artifacts to SharePoint
Top 10 Best Practices for Document Libraries
The Curtain Rises (Just a Bit) on SharePoint 2010
Clearing the Fog: Office Integration with SharePoint
A Big Fix for a Big Oops
Information Architecture: Are We Talking the Same Language?
Wise and Not-So-Wise Choices, Part 3
Wise and Not-So-Wise Choices, Part 2
Wise and Not-So-Wise Choices, Part 1
Busy Month for SharePoint Enthusiast and SharePoint Product Group
What You Get with SharePoint SP2
Office 2010 and SharePoint 2010 Wish List
Big Wins with SharePoint: London, Lisbon, and LA
Revelations About Exchange 2010, SharePoint Server 2010, and MOSS 2007 SP2
Branded a Fool
Bil Simser Compiles Favorite CodePlex Projects
SharePoint Designer Kicks It Up a Notch
Social Networking and the Enterprise
Office 2010 Will Not Appear in 2009
SharePoint Goes to School with Moodle
Making Document Libraries More Accessible: Scripting Network Places and Network Locations
An Overview of SharePoint Pro Online Live!
Expand SharePoint Backup Strategies SharePoint Backup Strategies
October 16, 2007
Introducing Office and SharePoint Pro
Windows SharePoint Services and Windows Server File for Divorce
What Do You Think? New Products and Addons Forums
Use Kerberos to Secure MOSS 2007
The SharePoint Capacity Planning Tool
Service Packalooza
SharePoint News for the New Year
SharePoint Migration Secrets
SharePoint Replication
Windows Server 2008 and Windows Vista SP1: What They Mean to SharePoint
SharePoint and Forms-based Authentication
The SharePoint Permissions Model
Microsoft Online Services Offers SharePoint to Businesses of All Sizes
SharePoint: What Do YOU Think?
STSADM at Your Service
Adding Templates for Top-Level Sites
Taking the Pulse of the SharePoint Community
Big News on the Collaboration Front from Telligent
SharePoint Report Card: Search
Report from the Microsoft MVP Summit 2008
Summary of SharePoint Scenario Report Cards
Got Yahoo!? I’m so sorry.
Implementing Folder Content Types
License to Fill: Licensing Windows SharePoint Services for the Extranet
Licensing Windows SharePoint Services
News from Tech Ed, Installing WSS on Vista—a Rave and Rant, and More
Tech Ed 2008 Wrap-Up
Great Stuff
MOSS 2007 Applications in the Business World
Microsoft Online Makes a Big Splash in the Services Pool
Comparing InfoPath and SharePoint Designer Forms
Comparing InfoPath and SharePoint Designer Forms, Part 2
Migrating Microsoft Office SharePoint Server 2007 to a Different Server
Microsoft Office SharePoint Server and Excel Services
SharePoint Sharing from Beijing
Olympics Diary
SharePoint’s Role in Bringing the Games to the Web
Email-Enabling SharePoint Document Libraries and Lists
Back to Reality
SharePoint's "Big" Problems
If You Build It Right, They Will Come
Deploying Shortcuts and Favorites to SharePoint Sites
SharePointers
Easy Answers about Document Libraries (Part I): Overriding Check Out
Spiral Development, the 80/20 Rule and SharePoint
SharePoint Calendar Tips
Sharepoint Futures
Excel Services and Excel Integration with SharePoint
My Migration to Microsoft Online
SharePoint Online's Debut
A Microsoft Online Report Card
Links, Links Everywhere...
Creating a Custom Advanced Search by Building Strings with JavaScript
If Steve Ballmer Were Santa, and I Were on His Lap
MVP Predictions for 2009
Making History
Scorecards and Dashboards and Mysteries... oh my!
SharePoint 14 and Office 14
Supporting the Community
Report from the MVP Global Summit: No Serious Injuries
Microsoft Announces FAST Search Roadmap
Office 2010 Won't Appear in 2009
Terst Test
Expand Office 2007Office 2007
Expand Office 2003Office 2003
     

Visit SharePointProSummit.com

     

     
     

Implementing Folder Content Types

ToTheSharePoint Newsletter

May 12, 2008


Dan Holme
Office & SharePoint Pro
Community Manager

Author's note: I recently invited SharePoint Microsoft Valued Professionals (MVPs) to pitch in to the newsletter, allowing us to share more perspectives and more solutions with you, our readers. This week, To The SharePoint welcomes the first of our guest columnists: Mikhail Dikov.  Mikhail has detailed a fantastic approach to taming large and diverse document libraries: implementing folder content types. Enjoy this, the first of many expert voices we’ll be bringing you!

Dan Holme
danh at intelliem dot (top level commercial domain)

SharePoint Folders Need More Love
Folder Content Types for IT Professionals

Most of you SharePoint enthusiasts probably know quite a bit about content types in SharePoint. They provide the means to organize metadata in an extremely flexible manner and provide the context for workflows, custom menus, and document templates. However, due to the document centric nature of Microsoft Office and SharePoint, the most commonly used and discussed content types are the document content types. Well, there is another lesser-known character in the content type story of SharePoint--it is the folder content type.

One reason why the folder content type is less popular is that the default SharePoint installation comes with only one of them--the Folder content type. Compared to dozens of out-of-the-box document content types, the Folder is clearly outnumbered. So let's have a closer look at this lonely hero and create a couple of folder content types so that we can find out how to use them to further enhance the user experience and data management of a document library.

To put things into perspective, let's look at how the fictional environmental foundation Rain Forest can use folder content types to improve its excising document library. The foundation staff stores all documents in a document library and they already use several document content types to support their activities. The document types are separated into two functional groups:

  • Project Documents (Additional Fields: Due Date, Assigned To)
    • Application for Grant (Word document)
    • Financial Memorandum (Excel document)
    • Formal Acceptance Document (Word document)
  • Internal Documents (Additional Fields: Contact, Status)
    • Purchase Order (Word document)
    • Invoice (Excel document)

The document library looks very familiar, and all document types are listed in the New menu:

The IT team of Rain Forest also defined some views based on document content type to make the filtering of each document type group easier and to be able to display content type specific fields such as Due Date and Assigned To:

If you are not familiar with document content types, this article shows the basics. For more information on how to create views, check out the following article.

All documents are stored in the root and occasionally employees will create folders at their discretion. However with time the clutter of folders makes locating documents really hard. All users also notice considerable slow down in view performance. After a few months, the root folder contains more than 4000 documents and is expected to grow. What can be done? This is when the little known character from our SharePoint story--the folder content type--comes in to help.

One reason for the performance hit is that folders in SharePoint have some limitations by design. For details on how the number of items affects performance, check out this article. Nevertheless if we partition the documents by financial quarters or other perpetual attributes, we can keep the total number of documents in a given folder within the high performance zone. That’s why we decide to create a folder for internal documents and project documents using the respective folder content types for every quarter of the year.

Furthermore we can provide some structure and boundaries for the employees, so that they cannot create folders anywhere in the document library. To help users locate documents, we’ll use a great feature of SharePoint, which allows us to bind views to a specific folder content type. This will provide context for each folder, so that when a user enters a folder with internal documents, the view will automatically change to display relevant metadata.

First let’s create a folder content type for each of our document groups. The steps are no different than creating any other content type. The only difference is that our content type will inherit from the Folder content type.

You can add specific metadata to each of the newly created content types, but for this walk-through, we’ll use the existing columns.

Next, let’s add the folder content types to our document library:

In addition, we would like to remove the default Folder command in the New menu, so that only our custom folder options are available. To do that, open the advanced settings of the document library and disable the New Folder option.

After these changes we will add our two new folder entries to the New menu.

Now, when a user wants to create a new folder for the next quarter, he or she will select the appropriate folder types from the New menu, and give the folder a descriptive name such as Internal Q1 2008. The process of provisioning a new folder can be automated and extended by using calculated fields or other programming techniques.

To provide the appropriate views, we create one view for the root folder and separate, unique views for each folder content type. The root view will display only folders from the newly defined content types.

Each custom folder content type will have a view that displays metadata specific to the type of document contained in the folder. These folder views are marked as default but are assigned to the specific folder content type.

Let’s see the result by creating a folder of each type.

You’ll notice that if you click the folder Internal Q1 2008, the view automatically will change to the Internal Documents view; similarly opening the folder Project Q1 2008 will change the view to the view Project Documents.

To add additional context sensitive behavior, you can also limit the New menu items displayed for each individual folder, so that only Internal documents show in the New menu of the corresponding folder. From the drop down menu of each folder select Change New Button Order, and hide the appropriate document types.

When you enter the folder you’ll notice that only the contextually correct New menu items exist.

Similarly you can hide the documents from the new menu of the root folder. Open the document library settings and in the content type section click Change new button order and default content type. Hide all but the folder content types.

From now on, the dedicated volunteers of Rain Forest can rest assured that they can locate documents easily and that the performance of their document library is going to be stable. Furthermore, the IT Pro of the foundation has some great ideas about how to add custom menus for each folder content type, so that actions applicable to all documents in a folder can be executed faster and in the proper context. There are also many opportunities to use item event handlers and the SharePoint DOM and workflow with folder content types to further extend the application. This SharePoint story certainly does not end here.

Mikhail Dikov is a senior software engineer at Global 360 (http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728785-0-0-0-3-2-196) and MVP for Microsoft Office SharePoint Server with background in CMS and BPM software. Mikhail brings more than 8 years experience in Microsoft technologies such as .NET, ASP.NET and more than 12 years of IT experience. Current interests include BPM, BI, SharePoint, .Net and AJAX. Mikhail is frequent speaker at code camps in Florida and an active member of the Space Coast Dot Net User Group (http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728786-0-0-0-3-2-196). Email: mdikov at gmail dot com Blog: http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728787-0-0-0-3-2-196

 


Events and Resources


From the data center to the desktop, virtualization has a far-reaching impact on the IT industry. Delivered directly to your inbox twice a month, Virtualization UPDATE gives you the information you need to stay ahead in this rapidly growing segment of the IT marketplace. Sign up today!
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728788-0-0-0-3-2-196

What steps are you taking to virtualize your environment?
Learn virtualization basics in this free online event on June 24, 2008. Discover how to reduce IT costs while increasing the efficiency, utilization, and flexibility of your existing hardware. You'll have a better understanding of how virtualization delivers energy-saving economies while promoting agility.
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728790-0-0-0-3-2-196

KVM Over IP for the Distributed IT Environment
With many organizations' network infrastructure spread across corporate campuses, among cities, and around the globe, there is a critical market need for next-generation keyboard/video/mouse (KVM) over IP solution that is specifically designed to meet the needs of distributed environments. Read this white paper, and you'll learn that the distribution of interconnected resources requires a secure IP-based KVM management strategy that guarantees simple, non-invasive, flexible, fault-tolerant, scalable, and cost-effective access from anywhere, at any time.
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728791-0-0-0-3-2-196

Protect Your Data with System Center Data Protection Manager 2007
Explore this demo to learn about Microsoft System Center Data Protection Manager 2007's continuous data protection for Windows application and file servers, rapid and reliable data recovery, and advanced technology for enterprises of all sizes. Download this resource and learn how you can reduce costs and improve the agility of your business.
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728792-0-0-0-3-2-196

SQL Server Magazine Master CD: Take the Experts with You!
Find the solutions you need within the thousands of searchable articles, helpful bonus content, and loads of expert advice on the SQL Server Magazine Master CD. A Master CD subscription buys you portable access to the entire SQL Server Magazine article database plus exclusive access to all the new articles we publish only on SQLMag.com every day. It's like having a team of SQL Server consultants in your pocket! Get real-world solutions fast--order the SQL Server Magazine Master CD today.
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728793-0-0-0-3-2-196

Windows IT Pro Master CD: Take the Experts with You!
Find the solutions you need within the thousands of searchable articles, helpful bonus content, and loads of expert advice on the Windows IT Pro Master CD. A Master CD subscription buys you portable access to the entire Windows IT Pro article database plus exclusive access to all the new articles we publish only on WindowsITPro.com every day. It's like having a team of consultants in your pocket! Get real-world solutions fast--order the Windows IT Pro Master CD today.
http://ct.email.officesharepointpro.com/rd/cts?d=33-7405-1004-0-5811-728794-0-0-0-3-2-196

 


Office & SharePoint Pro | Penton Media | 249 W. 17th Street | New York, NY 10011 | Privacy Policy