Share this page

Saturday, July 25, 2009

Tool to configure all document libraries in a site in Sharepoint 2007

In this case I want to share my last development for Sharepoint 2007 and WSS 3.0. Before starting, I want to thank Margarita Curbelo, colleague and friend, who, one day we were talking about the features of Sharepoint, gave me a big idea to develop that.
This tool only covers the versioning configuration in the document libraries. In other versions I am going to add other configuration sections and I will extend them so that we can work with lists too.
This tool was also thought for 2 languages, English and Spanish and we must activate it in the site collection features. Once the tool has been activated, you can access it through site configuration because the feature added a custom section to enter this tool. The tool has a tree where the sub sites will be loaded and if we enter a sub site, the tree will show only the sub sites of the selected site. Once the tool is installed and activated, each of its configuration sections will have a custom section to access the tool, in image 1 we can see this custom section.

[Image 1]
clip_image002

In image 2 we can see the page to configure all document libraries in a site and sub sites of our Sharepoint portal.

[Image 2]
clip_image004

The first thing to do is to select the site where the document libraries that we want to configure are. In this version, 1.0, we only work with the document libraries from the selected site, but in other versions we will be able to work with all the document libraries that we want. In image 3 we can see the document libraries loaded for the site selected in the tree.

[Image 3]
clip_image006

The next steps is to select the documents libraries that we want in the first list box and using the buttons load it’s in the second document libraries. In the image 4 we can see 2 documents libraries in the second list box ready to configure.The next step is to select the document libraries that we want in the first list box and using the (“<” “>”) buttons load them in the list box. In image 4 we can see 2 document libraries in the second list box ready to configure.

[Image 4]
clip_image008

Ok, we are ready to configure these 2 document libraries. If we select one of them, we can see the previous configuration, but if we select 2 or more, the configuration panel will show the initial configuration. Be careful because if you press the “Ok” button, all document libraries will be saved with these options. In image 5 we can see the options configured for the document library selected.

[Image 5]
clip_image010

We are going to select the 2 document libraries in the second list box and we are going to configure them. After that, we must press the “Ok” button to save the changes. In image 6, we can see the selected documents.

[Image 6]
clip_image012

We must be careful because all document libraries will be modified. The “Cancel” button will close the tool and return to the configuration section of the site.
In the zip file, (you can download it from my SkyDrive) there are 3 elements:

1) installSolution.bat – Installs the WSP in Sharepoint but does not activate the feature.

2) uninstallSolution.bat – Deletes the feature and uninstalls the WSP.

3) Siderys.Blog.Configuration.DocLibConfigurations.WSP.wsp – Has all the files to run the tool.

Once the solution is installed, we must activate the feature in the site collection features. I Also want to tell you that I’m opening a project in CodePlex, where I will put all the developments.

WSP to install

clip_image013
Download the WSP file

Fabián Imaz

2 comments:

Anonymous said...

Hi i have installed your tool. And when i install the .bat file and go to my site features, your feature will not become available. Am i missing a step ?? can you help me please

Fabián Imaz said...

Check if the WSP is deployed in your sites into the central administration. I mean after installed the wsp using the bat file, you need chek if the WSP was desployed correctly in your environment.
Did you change the options in the bat file?

tks,
Fabián