Locked lesson.
About this lesson
Add columns to an existing view and create a brand new view that filters only for documents that are relevant to a specific team.
Exercise files
Download this lesson’s related exercise files.
4.06 creating-custom-library-views - Exercise.docx61.2 KB 4.06 creating-custom-library-views - Exercise solution.docx
59.8 KB
Quick reference
Creating Custom Library Views
Add columns to library views and create custom library views to show just the content that is relevant to the team.
When to use
We create a custom library view whenever we need a quick way of looking at a list of files and folders in different ways.
Instructions
Adding Columns to a Library View
The default view in a document library is All Documents. We can modify this view and add or remove columns.
For example, we have a whole bunch of documents in the document library. Each document is owned and managed by a particular team. We would like to create a view for each team that allows them to just see the documents owned by their team and hides everything else.
In this example, we want to create a view to filter the list of documents to show only documents that are relevant to a particular team.
As there is no 'Team' column by default in the All Documents view, we need to add this column and manually assign a team to each document.
- From the document library, click Add column.
- Select Choice from the menu.
- Choose a name for the column e.g. Team.
- Add the choices: Team 1, Team 2, Team 3, and Team 4, etc.
- Set a default value of Team 1.
- Click Save.
Now we need to edit the view and assign a team to each document in the library.
- Click Edit in grid view from the horizontal menu.
- Click in the first record, in the Team column and choose a team from the pick-list.
- Repeat this process for each document in the library.
- Once complete, click Exit grid view.
Default Values in Libraries
- From the document library, click New.
- Select Word document.
- Type some test text
- Click on the document title and rename the document to something meaningful.
- Close the file
Notice the default value of 'Team 1' has been assigned to the document in the Team column.
Creating Custom Library Views
In this example, we are going to create a new custom view using a filter to only show the documents that are tagged with 'Team 2' in the Team column.
- From the document library, click All Documents.
- Click Create a new view.
- Name the view 'Team 2' and click Create.
Now we have created the view we need to define the parameters for the view. In this case, we only want to see documents that are tagged with 'Team 2'. For this, we will use a filter.
- Switch to the 'Team 2' view.
- Click the drop-down arrow and select Edit current view.
- Scroll down the page to the Filter section.
- Select to only show items when the Team is equal to Team 2.
- Click on OK,
- Switch between the different views to test it out.
Lesson notes are only available for subscribers.