SOLVED

Display a default folder in the Document web part

%3CLINGO-SUB%20id%3D%22lingo-sub-1225850%22%20slang%3D%22en-US%22%3EDisplay%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1225850%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20added%20the%20Document%20subpart%20to%20several%20pages%20of%20our%20SharePoint%20Communication%20intranet%20site.%20I've%20created%20subfolders%20under%20%22Documents%22%20for%20each%20of%20these%20pages.%20I%20want%20to%20be%20able%20to%20set%20a%20default%20folder%20for%20each%20page%20separately%2C%20but%20can't%20figure%20out%20how.%20For%20example%2C%20I%20want%20the%20Document%20web%20part%20on%20the%20%22Lega%22%20page%20to%20default%20to%20the%20%22Legal%22%20folder.%20IT%20page%20to%20IT%20folder%2C%20Quality%20page%20to%20Quality%20folder%2C%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20edited%20the%20Document%20web%20part%20and%20changed%20the%20%22Folder%22%20field%20to%20match%20the%20desired%20folder%20name%2C%20but%20all%20it%20does%20is%20change%20the%20title%20in%20the%20webpart%20and%20doesn't%20actually%20default%20to%20the%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHelp%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1225850%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1226186%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1226186%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F412626%22%20target%3D%22_blank%22%3E%40Alpine_Miller%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20created%20a%20sample%20document%20library%20and%20two%20modern%20pages%20with%20some%20content%20and%20document%20webpart%20target%20to%20different%20folders.%20Please%20look%20at%20the%20screenshot%20below%20for%20reference.%3C%2FP%3E%3CP%3E%3CSTRONG%3EDocument%20Library%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22DocLib.png%22%20style%3D%22width%3A%20672px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176689i51AA9FBA92D5888C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22DocLib.png%22%20alt%3D%22DocLib.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3BPage%201%20with%20'Folder%201'%20as%20the%20default%20folder%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22page%201.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176690i0997AB7DC86CA647%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22page%201.png%22%20alt%3D%22page%201.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3BPage%202%20with%20'workbench'%20as%20the%20default%20folder%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22page%202.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F176691i9B4BCA135D5F7712%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22page%202.png%22%20alt%3D%22page%202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%3CFONT%20size%3D%222%22%3EHope%20it%20helps%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20resolves%20ur%20clarification%20or%20issue%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3CFONT%20size%3D%222%22%3E-Sudharsan%20K...%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1238547%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1238547%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144422%22%20target%3D%22_blank%22%3E%40Sudharsan%20K%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20this.%20When%20I%20exit%20the%20page%20and%20come%20back%2C%20it's%20back%20to%20the%20top-level%20Document%20view%20and%20not%20inside%20the%20folder%20I%20was%20hoping%20to%20keep%20as%20the%20default.%20The%20only%20thing%20that's%20persistent%20is%20the%20name%20at%20the%20top.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1238560%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1238560%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3ECan%20you%20please%20try%20Ctrl%20%2B%20R%20and%20Ctrl%20%2B%20F5%20to%20clear%20the%20cache%20and%20reload%20the%20page%20and%20try.%20Its%20working%20for%20me.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1238566%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1238566%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144422%22%20target%3D%22_blank%22%3E%40Sudharsan%20K%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20worked.%20Wierd.%20I%20even%20tried%20it%20in%20a%20separate%20browser%20before%20to%20make%20sure%20it%20wasn't%20a%20cache%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1238573%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20a%20default%20folder%20in%20the%20Document%20web%20part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1238573%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F412626%22%20target%3D%22_blank%22%3E%40Alpine_Miller%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20see%20the%20below%20gif.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Folder%20View_edit_0.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F178183i9D466981B69B62FD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Folder%20View_edit_0.gif%22%20alt%3D%22Folder%20View_edit_0.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have added the Document subpart to several pages of our SharePoint Communication intranet site. I've created subfolders under "Documents" for each of these pages. I want to be able to set a default folder for each page separately, but can't figure out how. For example, I want the Document web part on the "Lega" page to default to the "Legal" folder. IT page to IT folder, Quality page to Quality folder, etc.

 

I've edited the Document web part and changed the "Folder" field to match the desired folder name, but all it does is change the title in the webpart and doesn't actually default to the folder.

 

Help?

6 Replies
Highlighted
Best Response confirmed by Alpine_Miller (Occasional Contributor)
Solution

@Alpine_Miller 

I had created a sample document library and two modern pages with some content and document webpart target to different folders. Please look at the screenshot below for reference.

Document Library

DocLib.png

 

 Page 1 with 'Folder 1' as the default folder

 

page 1.png

 

 Page 2 with 'workbench' as the default folder

 

page 2.png

 

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue

-Sudharsan K...

 

 

Highlighted

@Sudharsan K

 

I tried this. When I exit the page and come back, it's back to the top-level Document view and not inside the folder I was hoping to keep as the default. The only thing that's persistent is the name at the top.

Highlighted
Hi,
Can you please try Ctrl + R and Ctrl + F5 to clear the cache and reload the page and try. Its working for me.
Highlighted

@Sudharsan K 

 

That worked. Wierd. I even tried it in a separate browser before to make sure it wasn't a cache problem.

 

Thanks for the help!

 

Highlighted

@Alpine_Miller 

Please see the below gif.

Folder View_edit_0.gif

 

Highlighted
Hi,
Please mark the response which you think as a solution, it will help others in the community.