First of all, we would like to thank Dudu for its recommendation!
For a long time, it has been a headache for me to display webpart in the tree of this so-called document library (because my business department keeps providing comments !). In fact, I have some ideas, but I have a little bit of programming skills ....... Yesterday, I suddenly saw Dudu's article. I quickly downloaded this webpart. And started Deployment and testing:
1. Use the stsadm command to deploy it on the server.
There is nothing to say about this. I don't know. Check the SDK.
2. Deploy documentlibrarybrowser. dll and mytreeview. dll in the bin directory to GAC.
3. Add the webpart to the site
4. Deploy the webpart on the webpage
I thought, it's okay. However, an unexpected situation occurs on the page, that is, the "Tree" trunk (that is, the connection line and folder icon on the left) of the webpart is displayed in a tree with Red Cross. I remember that there was a "wpresources" directory under the site directory, and when this webpart program was deployed, a documentlibrarybrowser directory was automatically created in it, where are all the icons? What's going on?
Right-click the Red Cross and view the properties. The path is: "http: // test: 8080/docs/_ wpresources/documentlibrarybrowser/1.0.0.1 _ 42f4415f140f5427/base.gif"
However, this directory does not exist when you use FrontPage to open the site. So I manually create a folder "_ wpresources" on the site according to this path, but the creation fails. Will it be because the 1.0.0.1 _ 42f4415f140f5427 directory is missing. Therefore, I created a directory named 1.0.0.1 _ 42f4415f140f5427 under the documentlibrarybrowser directory. However, the fault persists.
Then I thought of c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ wpresources, because this directory is where SPs are used to put public resources, will it be?
I created two directories in this directory: C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ wpresources \ documentlibrarybrowser \ 1.0.0.1 _ 42f4415f140f5427, copy all the images to this directory.
On the refresh page, OK.
Originally, the system automatically creates the _ wpresources virtual directory for each region, which actually points to C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ wpresources \ directory.