I want to filter a list based on the page the list is on...

%3CLINGO-SUB%20id%3D%22lingo-sub-197754%22%20slang%3D%22en-US%22%3EI%20want%20to%20filter%20a%20list%20based%20on%20the%20page%20the%20list%20is%20on...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-197754%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20a%20custom%20document%26nbsp%3Blibrary%20for%20the%20site%20that%20that%20will%20contain%20all%20project%20documents%20for%20multiple%20projects.%20I%20have%20placed%20the%20doc%20library%20on%20a%20project%20page%20for%20all%20the%20projects.%20Now%20I%20want%20to%20have%20the%20doc%20library%20filtered%20based%20on%20the%20Project.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-197990%22%20slang%3D%22en-US%22%3ERe%3A%20I%20want%20to%20filter%20a%20list%20based%20on%20the%20page%20the%20list%20is%20on...%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-197990%22%20slang%3D%22en-US%22%3E%3CP%3EAdd%20a%20Project%20Field%20to%20your%20document%20library%20either%20managed%20metadata%20or%20choice%20field%20and%20add%20values%20for%20all%20types%20of%20projects.%3C%2FP%3E%3CP%3ECreate%20Multiple%20views%20for%20document%20library%20and%20setup%20the%20filter%20with%20the%20condition%20for%20project%20field%20value%20to%20b%20equal%20to%20specific%20project%20and%20make%20sure%20only%20content%20relevant%20to%20specific%20project%20shows%20up%20in%20each%20view.%3C%2FP%3E%3CP%3EAdd%20Document%20library%20webpart%20on%20all%20the%20project%20pages%20and%20change%20the%20view%20to%20render%20view%20specific%20to%20the%20project.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3ETo%20update%20the%20view%20of%20a%20web%20part%20on%20each%20project%20page%2C%20please%20try%20the%20steps%20below%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIn%20the%20page%20where%20the%20web%20part%20is%2C%20click%20the%20gear%20on%20the%20upper%20right%20corner%26gt%3B%3CSTRONG%3EEdit%20page%26gt%3BEdit%20Web%20Part%26gt%3B%26nbsp%3B%3C%2FSTRONG%3EExpand%20the%26nbsp%3B%3CSTRONG%3ESelected%20View%3C%2FSTRONG%3E%2C%20choose%20the%20specific%20project%20view%20you%20want%20to%20use.%26gt%3B%20Click%26nbsp%3B%3CSTRONG%3EApply%3C%2FSTRONG%3E%26nbsp%3Bto%20check%20the%20outcome%26gt%3BClick%26nbsp%3B%3CSTRONG%3EOK%3C%2FSTRONG%3E%26nbsp%3Band%20save%20the%20changes.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHope%20this%20helps!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I am using a custom document library for the site that that will contain all project documents for multiple projects. I have placed the doc library on a project page for all the projects. Now I want to have the doc library filtered based on the Project.

1 Reply
Highlighted

Add a Project Field to your document library either managed metadata or choice field and add values for all types of projects.

Create Multiple views for document library and setup the filter with the condition for project field value to b equal to specific project and make sure only content relevant to specific project shows up in each view.

Add Document library webpart on all the project pages and change the view to render view specific to the project.

To update the view of a web part on each project page, please try the steps below:

In the page where the web part is, click the gear on the upper right corner>Edit page>Edit Web Part> Expand the Selected View, choose the specific project view you want to use.> Click Apply to check the outcome>Click OK and save the changes.

Hope this helps!