Jaap Vossers' SharePoint Blog

Just another WordPress.com site

Per-Location View Settings in SharePoint 2010 (Views per Content Type)

with 9 comments

What’s that supposed to mean? That’s what went through my head when I saw a new link which had appeared on the List Settings page (listedit.aspx) in SharePoint 2010.

When I clicked the link, I was directed to a page where I could manage the available views per “location”.

The word “location” can have many different meanings. My initial thought was that it was referring to folders inside the list and that this page is used to configure which views are available per folder.

This turned out to be correct. I added a folder to the list and was able to make my custom view appear on there, whilst hiding it from the root of the list.

Is that all? Why call it locations when you mean folders? Well, because it does not only apply to folders!

You can configure available views for ANY NODE in the “Metadata navigation”. As a result, In addition to views per folder – depending on how you set up your Metadata navigation for your list – you can:

  • Define views that are available only on items of a particular Content Type (my favourite, demonstrated below)
  • Define views that are available only on items that have a particular value for a field of type single-value choice.
  • Define views that are available only on items that have a particular term applied to it on a field of type Managed metadata.

Let me demonstrate how to make our “Books Grouped by Author” view available only to our Book content type in our Products list, whilst hiding it for all other type of products in the list.

Below is a summary of all the steps. I will only discuss the last two steps where we configure Metadata navigation and the Per-location view settings, as this what this article is all about.

  1. Create custom list Products
  2. Create content types:
    1. Book (Title, Price, Author)
    2. Movie (Title, Price)
    3. Music Album (Title, Price, Artist)
  3. Configure list to allow management of Content Types
  4. Associate Book, Movie and Music Album with list and delete Item Content Type
  5. Populate list with items for each Content Type
  6. Create view Books Grouped by Author
  7. Configure Metadata navigation
  8. Configure Per-location view settings

Once we have successfully performed steps 1 to 6, we need to bring up the Metadata navigation settings screen for our list. The link to this page can be found on the List Settings page. In the Configure Metadata Hierarchies section, we need to select the “Content Type” item from the list on the left and move it to the right and press OK

As a result, we should now get a hierarchical navigation control on the left of our list.

Once that’s done, we need to bring up our Configure per-location view settings page. The link to this page can also be found on the List Settings page. On the left, there is a hierarchical control labelled “Location to Configure”. We need to use this to select the node (or Location if you like) to which we will be applying the configuration defined on the right. We start with the root node, which is selected by default. We don’t want our grouped view to be available at the root, so we select it in the “Views available at this location” list and move it to the “Views hidden from this location” list and press Apply. Next, we need to expand the “Content Type” node in the tree on the left and select Book. By default it is configured to inherit its settings from its parent, which it not what we want. Set this to No, and move the grouped view to the “Views available at this location” list. While we are at it, let’s move the All Items view to the “Views hidden from this location” list, so that our grouped view becomes the default view for the Book Content Type, and press OK.

Navigate to the list. When selecting Book in the Metadata Navigation on the left, the grouped view should now show instead of the All Items view. Note that  the Book Content Type node in the metadata navigation, is also the ONLY location where our grouped view is available.

On a final note, I noticed that the Per-location view settings link does not appear on the List Settings page when the list is contained in a Blank Site. I performed the actions above on a Team Site. Presumably certain Features needs to be activated to enable this functionality, however I currently don’t know which one. Also, I am not sure how much of this functionality depends on SharePoint Server 2010 and whether it will work on a SharePoint Foundation installation.

Written by jvossers

December 27, 2009 at 10:13 pm

Posted in SharePoint 2010

9 Responses

Subscribe to comments with RSS.

  1. […] This post was mentioned on Twitter by Jaap Vossers, Wesley Hackett. Wesley Hackett said: RT @jvossers: Just blogged: Per-Location View Settings in SharePoint 2010 (Views per Content Type) http://bit.ly/5Y2x6k #sharepoint #sp2010 […]

  2. Social comments and analytics for this post…

    This post was mentioned on Twitter by jvossers: Just blogged: Per-Location View Settings in SharePoint 2010 (Views per Content Type) http://bit.ly/5Y2x6k #sharepoint #sp2010…

    uberVU - social comments

    December 27, 2009 at 11:55 pm

  3. […] This post was Twitted by woodywindy […]

    Twitted by woodywindy

    December 28, 2009 at 3:11 pm

  4. […] Per Location View Settings from Japp Vossers: Its amazing how many new options there are in 2010 and how little people know about them! […]

  5. “Metadata Navigation and Filtering” is the feature which needs to be activated for this functionality. It is a web site feature.


    April 13, 2012 at 4:04 pm

  6. […] views for any node in metadata navigation. For more details please refer to good blog in the url https://blog.vossers.com/2009/12/27/per-location-view-settings-in-sharepoint-2010-views-per-content-t…. I learnt about it from the aforementioned url Share this:TwitterFacebookLike this:LikeBe the first […]

  7. Here’s how to set Per-Location Views programmatically: http://wp.me/p22s88-6g

    Joel Plaut

    September 3, 2012 at 6:04 pm

  8. Great post. I recently took a long look at all the different options for configuring default views in SharePoint. This article provides awesome detail on one of the ways to set defaults, take a look this post if you are interested in the other defaults that apply to views in a library hierarchy:

    Cameron Dwyer

    January 15, 2014 at 2:55 am

Leave a Reply to Top SharePoint articles for the week | Whats The Point Of Sharing? Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: