Showing posts with label Document Sets. Show all posts
Showing posts with label Document Sets. Show all posts

Thursday, March 13, 2014

How to Create Views on Document Set Contents


Hello Cyber People!

I can safely say if you are taking the time to read this post that you have been asked a question which had recently been asked of me “How the heck do we create views on the document set contents?”

Well the answer is a bit obscure and not as user friendly as you would imagine.  In this How To we will actually be editing the document set page, removing the document set contents, and replacing it with a list view web part of the document library.


Assumptions:
You have enabled Document Sets Content Types
You have added a Document Set Content Type or Custom Document Set Content Type to a library
You have added one line item using the Document Set aka you have at least one document set in your library uploaded.
  1. Open a document set you currently have already uploaded in the library
  2. Select Page →Select Edit Page
By editing this page, we will actually be editing the homepage for all of the document sets which are of this content type.
  1. Delete the Document Set Contents web part 
  2. Insert a new Web Part / App Part depending on what version of SharePoint you are using of the library that you are currently working in.  For my example I will be putting my Promotions Library within the document set.
  
My Set Up:
Library: Promotions, Document Set: Promotion, Document Set Contents will be replaced with a list view web part of Promotions.

What I essentially am asking you to do is commit Document Library Inception!  We will be putting this library / list view within the document set.  The document set should automatically send the library / list view the parameter from the query string only showing documents for that particular document set.

After you insert the library view into the document set you should be able to edit the web part and select the view that you would like to display.  For my example, I have grouped my documents by content type.

Cheers!
Dan

Monday, August 19, 2013

How To Show Related Items Within A Document Set


This tutorial will show you how to activate the document set feature / content type, how to create a Document Set Content Type, How to Add the Content Type to Your Library, and how to show Related List Items within the particular document set.  If you know how to do all of the other aspects of this article, feel free to skip to the end and just read the part under “Display Related Items Within The Document Set.”


(This post assumes that you know how to create a lookup from your list to a field within the Document Set Content Type.  I have a previous post which shows how to use the lookup field required to create the relationship)


Materials Needed:

1.    A Document Library

2.    A List

3.    A relationship between the list and document set (lookup field)

4.    Page Field Filter Web Part

 
Activate the Document Set Feature:

(This requires SharePoint Online for Enterprises or SharePoint Server 2010)

 
1.    Select Site Actions

2.    Select Site Settings

3.    Site Collection Administration

4.    Site Collection Features

5.    Activate Document Sets

 
Create the desired Document Set Content Type

1.    Select Site Actions

2.    Select Site Settings

3.    Select Site Content Types

4.    Select Create

5.    Enter the name of your Content Type

6.    Under Select Parent Content Type

a.    Select Document Set Content Types

                                          i.    (this is only available after activating the feature which we did previously)

7.    Select a group where you would like the Document Set Stored

8.    Select OK

 
Add the Created Content Type To Your Library:

1.    Select the Desired Library

2.    Select Library Tools

3.    Select Library

4.    Select Library Settings

5.    Select Advanced Settings

6.    Select “Yes” Allow Management of Content Types

7.    Select OK

a.    “Add From Existing Site Content Types” Will Now Appear Under Content Types

8.    Select Add From Existing Content Types

9.    Select The Document Set Content Type Which You Created Earlier

10. Select Add

11. Select OK

a.    (There will now be two content types listed under Content Types “Document” & “Your Document Set Name”)

Related List

I have an earlier post “Linking Lists & Editing The Default Display Form” on how to relate the two pieces of content.  In a nutshell though, you will need to have a lookup field which pulls a field from your created Document Set.  I will be using the Title from my Document Set Content Type for my example.

 Display Related Items Within The Document Set:

1.    Navigate To Your Library

2.    Create a New Document Set Item

3.    Open the Document Set Item

4.    Select The Page Tab

5.    Select Edit Page

6.    Select The Zone You Would Like Your Related Items Displayed

7.    Select Add A Web Part

8.    Select The List With Related Items

9.    Select Add A Web Part

10. Insert the “Page Field Filter” Web Part

11. Select The Page Filter Web Part

a.    Select Connections

12. Select “Send Filter Values To”

13. Select Get Filter Values From

14. Select Configure Connection

15. Select the Related Field From Consumer Field Name

16. Select Finish

17. Select Stop Editing

Your Document Set Should Now Display Only The Related Items!!!