次の方法で共有


Recycle Bin.. Continued

Setup instructions

A) Setting up the configuration

 

1) Copy the xml files 'Configuration.xml' and 'TrashConfiguration.xml' to the location 'C:\Sharepoint\'

2) Open the file 'Configuration.xml' in notepad and make a note of the values for 'Mirror', 'Recycle' and 'Main'.

3) In the 'Configuration.xml' file modify the value for domain, User and Pass, to the corresponding values for an user with admin rights on the site.

4) make the same changes to the file 'TrashConfiguration.xml'

 

B) Installing the assemblies

 

NOTE: the assemblies need to be installed in the GAC

1) Click on Start->Run. Type 'cmd' and press enter, to open the command window.

2) At the prompt, key in ‘cd "C:\WINNT\Microsoft.NET\Framework\v1.1.4322" ‘ and press the return key

NOTE: on the machine there is a chance that this command may fail. In that case, replace 'WINNT' with 'Windows'

3) key in the command ‘gacutil -i 'path of the doclibrary.dll file' ‘and press enter. You should see a message informing that 'Assembly successfully added to the cache'

3) key in the command ‘gacutil -i 'path of the wastebasket.dll file’ ' and press enter. You should see a message informing that 'Assembly successfully added to the cache'

 

C) Creating the document Libraries

 

1) Open the browser, and navigate to the Portal site.

2) Click on 'Documents and Lists' in the top navigation menu.

3) Click on 'Create'

4) Create the Main document library

            4.1) On the Create Page, click on 'Document Library'

            4.2) In the name field, provide the value already noted down for the 'Main' field from the xml file.

            4.3) Click on 'Create'

5) Create the Mirror document library

            5.1) On the Create Page, click on 'Document Library'

            5.2) In the name field, provide the value already noted down for the 'Mirror' field from the xml file.

            5.3) select the option 'NO' for 'display this library in the Quick Launch bar?'

            5.4) Click on 'Create'

6) Create the recycle Bin library

            6.1) On the Create Page, click on 'Document Library'

            6.2) In the name field, provide the value already noted down for the 'Recycle' field from the xml file.

            6.3) Click on 'Create'

 

 

D) Hooking up the EventHandlers

 

1) Click on the 'Documents and Lists' link in the top navigation menu.

2) Under 'Documents and Libraries' you should see all the three document libraries that were created in the above step.

3) For the Main Library

            3.1) Click on 'MainDocLib'

            3.2) On the Left Navigation menu, Click on the link 'Modify Settings and Columns'

            3.3) Under the 'General Settings' section, click on 'Change Advanced Settings' if the advanced settings option does not get displayed on the page, then follow the steps in section (G)

            3.4) For the field AssemblyName refer section (F) at the bottom

            3.5) for the field ClassName refer section (F) at the bottom

            3.6) Click Ok

4) For the recycle Bin Library

            4.1) Click on 'RecycleBin'

            4.2) On the Left Navigation menu, Click on the link 'Modify Settings and Columns'

            4.3) Under the 'General Settings' section, click on 'Change Advanced Settings'

            4.4) for the field AssemblyName refer section (F) at the bottom

            4.5) for the field ClassName refer section (F) at the bottom 'RecycleBin.SharePoint.EventSink.BaseEventSink'

            4.6) Click Ok

 

 

E) Modifying the RecycleBin UI

 

NOTE: You would need to have Frontpage2003 installed on the machine.

1) Open FrontPage. Click File->Open Site. In the Open Site dialog box, type in the URL for the site as 'https://<servername>/<sitename>' and click open

2) In the left 'Folder List' pane, expand the tree for the RecycleBin library. Under that, expand the tree for the Forms node.

3) Double click on 'AllItems.aspx' to open it in the main pane.

4) In design mode, select the Document List web part and Click the listViewOptions box to open the Style modification box as shown in the screen shot

 

 

5) On the options tab, deselect the check box for "Show toolbar with options for:" and click ok.

6) Now switch to code view.

7) Locate the </HEAD> tag.

8) On the line before that line, paste the content of the file 'JavascriptFunction.txt'

9) Save the AllItems.aspx page, and exit front page

F) Getting the information for the assemblies

For the DocLibrary.dll

1) unzip the attached file AssemblyInformation.zip.

2) Execute the exe GetAssemblyName.

3) Click the ‘getAssemblyDetails’ button

4) Browse to the path of the assembly doclibrary.dll and click OK.

5) The Assembly Name and class name fields would get populated.

6) Copy the respective values for Assembly Name and Class Name.

For the wastebasket.dll

1) unzip the attached file AssemblyInformation.zip.

2) Execute the exe GetAssemblyName.

3) Click the ‘getAssemblyDetails’ button

4) Browse to the path of the assembly wastebasket.dll and click OK.

5) The Assembly Name and class name fields would get populated.

6) Copy the respective values for Assembly Name and Class Name.

G) Steps to enable Event handlers for a site

1) Open the Sharepoint central administration site.

2) Under the ‘virtual serer configuration’ section click on ‘Configure Virtual Server Settings’

3) On the subsequent page, select the web site from the web site list.

4) On the subsequent page, under the ‘Virtual Server management’ click on the ‘virtual Server general settings’ link

5) On the subsequent page, scroll to the bottom of the page, under the Event Handlers section, toggle the radio buttons, to turn on the Event handlers. Click OK.

6) Now open the site in the browser. Click on Site Settings.

7) Click on ‘Go to site Administration’

8) click on ‘manage permission inheritance’

9) Select ‘Unique permissions’ and click Ok