SharePoint development journey (1) Create sitedefinition helloworld

Source: Internet
Author: User
Tags visual studio 2010

IDE: Visual Studio 2010

Language: C #

SharePoint version: 2010

1): Create a sitedefinition project.

2): Change the ID of sitedefinition.

Expand the sitedefinition node, find the webtemp _ $ projectname $. xml file, open it, and change the ID of the template node to another one (the ID of the current sitedefinition in exchange cannot be repeated or an error will be reported)

3): Customize something

Expand the sitedefinition node, find default. aspx, open it, and modify content1

Hello world!

<ASP:ContentID= "Content1"Contentplaceholderid= "Placeholdermain"Runat= "Server"> <H1>Hello world!</H1> </ASP:Content>

4): release it.

5): Create a site collection (website set) in SharePoint and select the template we just created. (if not, select the language above the template as English), or find webtemp _ $ projectname $ under the sitedefinition node in the project. right-click XML and select attribute (F4). In the open attribute panel, expand deploy location and change path to 2052 \ XML \ (1033 English and 2052 Chinese by default, for other languages, see lcid ).

Create a website (http: // xxxxxxxxxx: 1111/sites/xxxtest) and open the website.

Created successfully.

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.