This article includes steps that describe how to do the following:
- Create a document library that contains subfolders.
- Convert the List View Web Part of the document library to XLST Data View.
- Use the URL Dir Name option to group the view by the path of the subfolders.
If you have not yet created a document library that contains subfolders, go to step 1 and then follow the remaining steps in this article. If you already created a document library that contains subfolders, go to step 4 and then follow the remaining steps in this article.
- Create a new document library in your Windows SharePoint Services Web site. To do this, follow these steps:
- Connect to your Windows SharePoint Services Web site, and then click Documents and Lists.
- Click Create, and then click Document Library under Document Libraries.
- Specify the settings that you want for the new document library, and then click Create.
- Create subfolders in the new document library that you created. To do this, follow these steps:
- On the DocumentLibraryName page, click New Folder.
- Type a name for the new folder in the Name box, and then click Save and Close.
- Repeat steps 2a and 2b for each subfolder that you want to create in the document library.
- Upload one or more documents to each subfolder in the document library. To do this, follow these steps:
- Click the subfolder that you want to upload documents to.
- Click Upload Document.
- On the DocumentLibraryName: Upload Document page, use one of the following procedures:
- To upload one document, click Browse, click the file that you want to upload, click Open, and then click Save and Close.
- To upload multiple documents at the same time, click Upload Multiple Files. Click to select the check boxes that are next to the files that you want to upload, and then click Save and Close.
- Repeat steps 3a through 3c for each subfolder in the document library.
- Convert the List View Web Part of the document library to XSLT Data View. To do this, follow these steps:
- Start FrontPage 2003, and then open the Windows SharePoint Services Web site.
- Open the AllItems.aspx page of the document library that you created.
- On the View menu, click Page if it is not already selected, and then at the bottom of the page, click Design.
- Right-click the List View Web Part, and then click Convert to XSLT Data View.
Note The subfolders are not displayed in the view.
- To group the view by the path of the folder, click Sort & group in the Data View Details task pane.
- In the Available fields list of the Sort and Group dialog box, click URL Dir Name, and then click Add.
Note If URL Dir Name is not displayed in the Available fields list, add URL Dir Name to the list. To do this, follow these steps:- Close the Sort and Group dialog box.
- In the Data View Details task pane, click Data source properties.
- Under Query in the Data Source Properties dialog box, click Fields.
- In the Available fields list of the Displayed Fields dialog box, click URL Dir Name, click Add, and then click OK two times.
- Under Group Properties in the Sort and Group dialog box, click to select the Show group header check box, click Collapse group by default, and then click OK.
- On the File menu, click Save.
The paths of the subfolders are displayed as group headers. When you preview the page in a Web browser, the group headers are collapsed. Expand the group headers to view the contents of the subfolders.