Skip to main content

Metadata Navigation and Filtering in SP 2010

SharePoint 2010 Metadata Navigation is one new feature that enables users to navigation through lists and libraries based on the configuration of the metadata. This feature improves navigation and filtering of the items or documents by means of metadata tree view hierarchies and filter controls.

The figure is an example of the metadata navigation in library.

Navigation Hierarchies

To configure Navigation Hierarchies, enter Document Library Settings > Metadata Navigation Settings. Select values from available hierarchy fields and add to right side.

Fields that are available for use as navigation hierarchies include columns that are one of the following types.

  • Content type
  • Single-value choice field
  • Managed metadata field

After configuration, you will see the metadata tree view on the left side of page.

Select one content type, then result will be loaded in the library.

To add managed metadata in metadata navigation, you need to create a Managed Metadata column in the library firstly, then add it to Selected Hierarchy Fields in Metadata Navigation Settings page.

Key filter

Key filters provide method to filter a list or library based on the specified value. It appears below the navigation hierarchy in the user interface after configuration.

In order to configure the Key Filters option, enter Document Library Settings > Metadata Navigation Settings, and then adds the columns to the Selected Key Filters Fields.

Following columns types are available for use as navigation hierarchies.

  • Content type
  • Choice
  • Managed metadata
  • Person or Group
  • Date and Time
  • Number

After settings, select value form the key filed and click Apply. You could see the documents have been shown in library based on the key field value.

There are some limitations and issues in Metadata navigation and filtering.

1. User cannot navigate or filter by fill-in values in single-value choice.

2. Filtering functionality on column header is disabled after configure the column as Key Filter fields. E.g., if I set Modified column as key filter field, when I try to filter values on Modified column header, it will displays “This column can be filtered using Key Filters.”

3. After analyzing the behavior of filtering by Date and Time value, it seems that SharePoint is not converted the Date and Time value from UTC to the site regional time zone. Such as, to filter items modified on 08/09/2011, I need to enter 08/10/2011 to get the results. It seems this is an issue left in Metadata navigation and filtering functionality.


Popular posts from this blog

How to get SPUser or SPGroup from Person or Group field

You have person or group field in SharePoint list and you want to programmatically get the user or person.

The below code to gets SPUser from User or Group field in the list when multiple choice and Groups are not allowed in the field:
//get SPUser
SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
SPFieldUserValue userFieldValue = (SPFieldUserValue)userField.GetFieldValue(item["Users"].ToString());
SPUser user = userFieldValue.User;

This part of code would help you to get SPUser when multiple choice is allowed and groups are not allowed:

//Multiple choices are allowed
SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
foreach (SPFieldUserValue userFieldValue in userFieldValueCollection)
    Console.WriteLine("     " + userFieldValue.User.LoginName);

And when group is allowed.  The…

SharePoint publishing page scheduling

In SharePoint 2010 publishing enabled team site collection is not showing schedule button in publish ribbon.
Here is how to enable it though the UI: Locate the SharePoint Server Web site on which you want to enable content approval and item scheduling.Click Site Actions, click Site Settings, and then click Modify Pages Library Settings.Under General Settings, click Versioning Settings.Click Yes next to Content Approval, and then click OK.Click Manage item scheduling.Click to enable the Enable scheduling of items in this list check box, and then click OK.

Adding new font into Rich Text Editor font DropDown box in SP 2010

It’s just as easy as that but the style sheet class must be defined specially and the same reference should called in your master page. The code for that looks like this, where I used a font from googles front directory.


/*************** Changing SP2010 default font **************/

Add “Helvetica” font from googles directory
@import url("");

     -ms-name: "Helvetica";
     font-family: "Helvetica", arial, sans-serif;

-webkit-font-family: "Helvetica", arial, sans-serif;
-moz-font-family: "Helvetica", arial, sans-serif;
-o-font-family: "Helvetica", arial, sans-serif;
.ms-rteFontSize-14 {
.ms-rteFontSize-16 {
.ms-rteFontSize-20 {