Moss solution package WSP (source code release)

Source: Internet
Author: User

In the previous Moss development, if you want to develop a moss product that reflects the company's strength, you must package it into a setup Installation File.CodeThe setup installation package is very troublesome and cumbersome.
Yesterday, I saw a good solution package tool in our blog. I felt very good. After reading the blog of instructor Chen, I feel very grateful .. I hope that Mr. Chen will have a better blog and learn more from new users. It's not here .. Start of work.
Before starting the project, you must mention one person, who is the most powerful person in our circle. Big Brother 11 and big brother 11 are very good at Moss. What they do is above us, and they have known each other for a while. He taught me more about Moss and benefited a lot. 11 The teacher is the living Lei Feng in our circle ....
First, let's take a look at this demo.How to: create a site definition from an existing site definitionTry it out

You can create a site definition by copying and modifying an existing site definition. this task involves use of collaborative Application Markup Language core schemas in two schema files: one that is a copy of a webtemp. XML file, and the other a copy of an ONet. XML file. you must create a site definition as described in this topic rather than modify the originally installed webtemp. XML file.

  1. Copy the existing site definition folder located inLocal_drive: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ sitetemplates \ STS directory.

    For example, to create a custom site definition that derives from the site definition for Microsoft Windows SharePoint Services, copySTSFolder. You can give the folder any name that contains no spaces.

  2. Make a copy of The webtemp. xml file that is located inLocal_drive: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ 1033 \ XML.

    Give the file a unique name by appending a string to the name of the original file; for example, webtempaction. XML. at run time, the compiler merges information contained in this file with the information contained in the original file to specify which site templates are available for creating new sites.

  3. Customize the contents of the new webtemp file.

    Each webtemp. xml file contains a collection of template elements and configuration subelements, which identify to the compiler all the site definitions that can be instantiated.ConfigurationElement defines, for example, a title, a description, the URL for the image displayed in the user interface (UI ), and a Display category that specifies the tab on which to display the template in the Template Selection section ofNew SharePoint sitePage. These properties are common to each web site created through the site definition.

    Important:

    In eachTemplateElement defined in the webtemp file,NameAttribute must contain the same name that is assigned to the new folder. Also, to avoid conflict with IDs already used in Windows SharePoint Services, use unique values greater than 10,000 for the ID attribute.

Example

The following example defines a single site definition. The example assumes the existence of an actioncommittee directory that has been created as previously described.

copy Code
<? XML version = "1.0" encoding = "UTF-8"?> <Templates xmlns: ows = "Microsoft SharePoint"> <Template Name = "actioncommittee" id = "10001"> <configuration id = "0" Title = "Action Committee team site" hidden = "false" imageurl = "images/stsprev.jpg" Description = "this template provides a forum for the team to create, organize, and share information quickly and easily. it includes des a document library, and basic lists such as announcements, events, contacts, and quick links. "displaycategory =" collaboration "> </configuration> </template> </templates>

You may need to reset Internet Information Services (IIS) to cause the new template to appear as an option in the UI.

Wspbuilder, http://www.codeplex.com/wspbuilder of this tool
The demo below is to create a webpart and a featues to manage a list on the website, and then package it into a WSP file. Then, you can find it in the website creation template After deploying and deploying WSP.
Then, use the webpart template to create a wsptest project, and then follow the following folder rules to create a folder. At that time, I will copy it to the corresponding Moss directory with tools and then pull it. Double-click wspbuilder.exe. The WSP file I need is generated.

The 12 folder corresponds to the 12 folder in Moss, and webtempwspdemosite. xml describes sitetemplate.
In sitetemplate, an XML file is our custom page ONet. XML, which contains our custom features. I will not introduce it one by one. All correspond to the one-to-one relationship in Moss. Finally, run the wspbuilder tool, and click OK to finally generate some configuration files, as shown in figure
There are so many ., Do you understand?
I put the code here to pull/files/wanghao-3/wsptest.rar. I hope you can understand ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.