0

I am trying to implement a web part that shows a given folder within a document library. Is there anyway that I can set a certain folder to be the starting point in a webpart? I am trying to also do this without displaying anything except the document library/folder.

2

1 Answer 1

1

You can do this by changing the link that users use to navigate to the page with the webpart in it.

Below is an example of a link I send out via email to users of a form for an item which contains a document webpart. As you can see I send a custom form, select the folder to display and use a non-default view on it.

http://<site>/<list>/Forms/<form>.aspx?<id>&RootFolder=<foldername>CTID=0x0120D5200046F6D724D05F4346862FFA6B7215E4A3&View={F404F7DE-F122-4D10-9E1E-5BACD9134120}&InitialTabId=Ribbon.ListForm.Edit&VisibilityContext=WSSTabPersistence

The easiest way I have found to get the right url is to simply navigate and display the information manually then copy paste the url to where it is needed.

2
  • But what Web Part do I use to show the given folder? Commented Apr 7, 2016 at 12:09
  • ..The web app for the library that the folder is in
    – Roland
    Commented Apr 7, 2016 at 22:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.