- Podcast
- Research
- Search
- Security
- Technology
- Video
- AIM
- Alfresco
- Collaboration
- ECM
- ESX
- Hyper-V
- IE8
- Internet Explorer
- Iomega
- Linux
- MIX08
- Microsoft
- NAS
- Nokia
- REV
- S60
- SaaS
- Sharepoint
- Silverlight
- Sony Ericsson
- VMware
- Windows Live
- YouTube
- Advertising
- Backup
- Beta Test
- Blogs
- Convergence
- Display
- Enterprise
- Humans
- Instant Messaging
- Multimedia
- Networking
- Open Source
- Phishing
Working with Templates in SharePoint
Creating List Templates
A list template is a file that includes specific design information for a list, such as the columns and fields in the list, the views, and optionally, the list content. Windows SharePoint Services includes a number of list templates by default, but you can create a new template from an existing list. The process to create a list template is almost exactly the same as the process to create a site template; follow these steps:
- From Central Administration, select the list you want to save as a template.
- Click on Modify settings and columns.
- Click on the Save list as template option (see Figure 3).
- Type in the filename to use for the template file.
- Specify the title and description (optional) for the template.
- Optionally, select the "Include content" check box to include the existing list content
- Click OK to finish the process
Modifying or Deleting a List Template
To modify or delete a list template from the site template gallery, follow these steps:
- Click on Site Settings .
- Switch to Site Administration.
- Click on "Manage list template gallery."
- Click on the Edit button next to the list template you want to modify or delete.
To add a template to the central template gallery so that it is available to all sites in your SharePoint portal, you can use the following command (all on one line):
stsadm.exe -o addtemplate -filename NameoftheTemplateFile
-title TemplateTitle -description TemplateDescription
Create a Custom Site Template
Usually, you copy a template so you can customize it to control the look and feel of the pages in your web sites. To create a custom site template in SharePoint, follow these steps:
- Copy the SPS folder from the location
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033. - Save the folder somewhere else, renaming it to
SPSDevXCustomfor this example. - Open the
Default.aspxfile from the newSPSDevXCustomfolder, and modify it as shown below: - Now open the
onet.xmlfile from theSPSDevXCustom\XMLfolder, and change the<AllUsersWebPart>tag as shown below: - Next, open the
webtempsps.xmlfrom theSPSDevXCustom\XMLfolder, which looks like this: - Change the <Template> section as shown below:
- Lastly, reset Internet Information Services (IIS) by typing
iisresetat the command prompt.
<WebPartPages:WebPartZone runat="server"
AllowPersonalization="false"
ID="DevXZone"
Title="DevX Custom Zone"
Orientation="Vertical">
</WebPartPages:WebPartZone>
<AllUsersWebPart WebPartZoneID="DevXZone"
WebPartOrder="0">
<![CDATA[
<WebPart xmlns=
"http://schemas.microsoft.com/WebPart/v2">
<Assembly>DevX, Version=1.0.0.0,Culture=Neutral,
PublicKeyToken=1111111111111111</Assembly>
<TypeName>DevX.WebParts</TypeName>
<Title>DevX Web Part</Title>
<Description>This is a Custom Web Part</Description>
<PartOrder>0</PartOrder>
<FrameType>None</FrameType>
<AllowMinimize>true</AllowMinimize>
<AllowRemove>true</AllowRemove>
<IsVisible>true</IsVisible>
<AllowOverrideGlobalXML
xmlns="DevX">false</AllowOverrideGlobalXML>
</WebPart>]]>
</AllUsersWebPart>
<Templates>
<Template Name="SPSTOC" ID="30">
<Configuration ID="0"
Title="Contents area Template" Type="0"
Hidden="TRUE"
ImageUrl="../images/spshome.gif"
Description="Area Template.">
<!-- _locID@Title="webtemp_title_spstoc0"
_locComment="{StringCategory=HTX}" -->
<!--_locID@Description="webtemp_desc_spstoc0"
_locComment="{StringCategory=HTX}"-->
</Configuration>
</Template>
</Templates>
<Templates>
<Template Name="<code> SPSDevXCustom</code> " ID="9999">
<Configuration ID="0"
Title="DevX Custom Template" Type="0"
Hidden="TRUE" ImageUrl="../images/spshome.gif"
Description="This is a sample template
</Configuration>
</Template>
That completes the operation to create a custom site template. You should now be able to see the new custom template when you log in to SharePoint Portal Server as the site administrator.
For more information, see these links:
TAGS:
Microsoft, portal, SharePoint, Web sites
Most Popular Stories
- 1 InfoPath 2010 Online Forms and the SharePoint Records Center
- 2 Building SharePoint Suggestion Boxes and Soliciting Anonymous Feedback
- 3 Solve Item-Level Permission Performance Problems in SharePoint
- 4 Redirect a Custom Page in SharePoint 2010
- 5 Using the Event Handler in SharePoint 2010
- 6 Create an Image Rotator in SharePoint Using jQuery
- 7 Developing SharePoint Solutions in Visual Studio Using WSPBuilder


Intel Parallel Studio enables C++ developers to verify applications and find latent memory errors that cause crashes and lockups. Download the step-by-step evaluation guide, and see for yourself.