Customization for Sharepoint-code attach content editor

Source: Internet
Author: User

Source: http://www.cnblogs.com/codingcow/articles/69143.html

SharePoint is a very new and useful technology. Now Microsoft integrates basic functionality into Windows 2003 server, which is the Windows Sharepoint service abbreviation WSS. He makes it easy to develop complex applications that are personalized.

In my experience, the development of SharePoint is mainly divided into three parts: customization (customization), Web part, configuration and integration. (This does not include SharePoint Portal Server) talk about customization first. Mainly speaking of my experience, and think of that down, the wrong place please point out that the organization is not clear where please forgive.

The easiest way to customize SharePoint is FrontPage 2003. But it does not help to develop large-scale applications, here is not discussed, interested in see http://www.sharepointcustomization.com/default.aspx

Development and customization are mainly to be modified in the following sections.

Virtual Server: That is your web directory

Site Definition (also called template): in C:\Program Files\Common Files\Microsoft Shared\windows Server Extersions\60\template\ 1033 or 1066 or ... Below, it is a template for creating websites, lists and document.

Layouts: _layouts in Virtual Server, general point C:\Program Files\Common Files\Microsoft Shared\windows Server Extersions\60\ Template\layouts. He has some very interesting usages and he will be available later.

Themes: The theme of the website, i.e. the CSS and his pictures

Vti_bin: Where the Web service is placed, it is _vti_bin in virtual server. Point to C:\Program Files\Common Files\Microsoft Shared\windows Server Extersions\60\isapi.

1. Make a new theme.

The first step is of course UI design pull. Ask your designer to draw an interface and choose a color, font, and so on. Copy a set of extersions\60\template\themes under C:\Program files\common Files\Microsoft Shared\windows Server theme, Modify Theme.css as you like. Reference http://msdn.microsoft.com/library/en-us/odc_SP2003_ta/html/ODC_ The Ows.css usage of spscustomizingsharepointsites3.asp?frame=true.

2. Site Definition (template for site)

This is a bit complicated. You should learn CAML before you go to work. This is not a fun stuff. Go to see it yourself: http://msdn.microsoft.com/library/en-us/spsdk11/CAML_Schema/spxmlconCAML.asp?frame=true

First copy the STS and change it to the name you need. Modify Webtemp.xml (under C:\Program files\common Files\Microsoft Shared\windows server Extersions\60\template\1033\xml), Add the new template.

The most important modification of Site definition is onet.xml. It includes the navigation Bar on the page (top and left), the definition and UI of the List template and fields, and the modules of each page.

First change the title attribute of project tag to the name you need, which is the default name when the site is generated. The second step can be changed to navigation Bar as needed. List Templates and fields generally do not need to be changed, you can ignore them first. Then find the module for modules and name= "Default". In the following url= "default.aspx" file is the website you want to change the homepage.

The content here will be displayed in the Default.aspx WebPartZone. Web part is represented by a alluserswebpart, and the list is represented by a view, and the view's list corresponds to the corresponding list ID above. For example, I want to add a text/html Web part to the top of the left column.

<alluserswebpart webpartzoneid= "left" webpartorder= "1" >
<! [cdata[
<webpart xmlns= "Http://schemas.microsoft.com/WebPart/v2" >
<assembly>microsoft.sharepoint, version=11.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c</ Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<FrameType>None</FrameType>
<title>my info</title>
</WebPart>
]]>
</AllUsersWebPart>

Or add a task Web part at the bottom of the right column.

<view list= "107" baseviewid= "7" webpartzoneid= "Right" webpartorder= "3"/>

Of course, you can also add your own Web Part.

ONET. The modification of XML only affects the new site, the existing site will not have any changes.

Sharepoint Customization-code-attached content editor

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.